From 9f52cfcf4dc5a10f1cc0da64fad79750d35f4747 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=94=D0=B8=D0=BB=D1=88=D0=BE=D0=B4=D0=B6=D0=BE=D0=BD=20?= =?utf8?q?=D0=A3=D0=BC=D1=80=D0=BE=D0=BD=D1=85=D0=BE=D0=BD=D0=BE=D0=B2?= =?utf8?q?=D0=B8=D1=87=20=D0=9F=D0=BE=D1=88=D1=88=D0=BE=D0=B5=D0=B2/AI=20T?= =?utf8?q?ools=20Lab=20/SRR/Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 21 Dec 2018 04:01:36 +0300 Subject: [PATCH] [neurun] CamelCase DotDumper::dump_if_needed (#4117) Convert style of DotDumper::dump_if_needed to camel case Signed-off-by: Poshshoev Dilshodzhon --- runtimes/neurun/src/compiler/Compiler.cc | 4 ++-- runtimes/neurun/src/dumper/dot/DotDumper.cc | 2 +- runtimes/neurun/src/dumper/dot/DotDumper.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtimes/neurun/src/compiler/Compiler.cc b/runtimes/neurun/src/compiler/Compiler.cc index 63afc23..fb5f504 100644 --- a/runtimes/neurun/src/compiler/Compiler.cc +++ b/runtimes/neurun/src/compiler/Compiler.cc @@ -48,12 +48,12 @@ void Compiler::compile(void) // dump graph to .dot neurun::dumper::dot::DotDumper dot_dumper(graph); - dot_dumper.dump_if_needed("before_lower"); + dot_dumper.dumpIfNeeded("before_lower"); // Lower: decide backend graph.lower(); - dot_dumper.dump_if_needed("after_lower"); + dot_dumper.dumpIfNeeded("after_lower"); auto linear = graph.linearize(); diff --git a/runtimes/neurun/src/dumper/dot/DotDumper.cc b/runtimes/neurun/src/dumper/dot/DotDumper.cc index 44e8781..ed9590a 100644 --- a/runtimes/neurun/src/dumper/dot/DotDumper.cc +++ b/runtimes/neurun/src/dumper/dot/DotDumper.cc @@ -28,7 +28,7 @@ namespace dot using namespace neurun::graph; -void DotDumper::dump_if_needed(const std::string &tag) +void DotDumper::dumpIfNeeded(const std::string &tag) { if (_option == OPTIONS::DUMP_OFF) { diff --git a/runtimes/neurun/src/dumper/dot/DotDumper.h b/runtimes/neurun/src/dumper/dot/DotDumper.h index 6ceaade..0c0a9b8 100644 --- a/runtimes/neurun/src/dumper/dot/DotDumper.h +++ b/runtimes/neurun/src/dumper/dot/DotDumper.h @@ -49,7 +49,7 @@ public: * @param[in] tag The name of dot file that would be created * @return N/A */ - void dump_if_needed(const std::string &tag); + void dumpIfNeeded(const std::string &tag); private: const neurun::graph::Graph &_graph; -- 2.7.4