From 50ea943d5f2c823a85210f6714613c3b34494315 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9C=A4=ED=98=84=EC=8B=9D/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 6 Sep 2019 19:25:20 +0900 Subject: [PATCH] [exo-tflite] Put "exo::" prefix (to easily distinguish log from exo) (#7258) It is difficult to tell which (moco? exo-tflite?) prints log. So, "exo::" prefix is added for exo-tflite. Signed-off-by: Hyun Sik Yoon --- compiler/exo-tflite/src/Conversion/ReluConverter.h | 2 +- compiler/exo-tflite/src/Conversion/ShapeInferencePass.h | 2 +- compiler/exo-tflite/src/Conversion/TypeInferencePass.h | 2 +- compiler/exo-tflite/src/ProgressReporter.cpp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/exo-tflite/src/Conversion/ReluConverter.h b/compiler/exo-tflite/src/Conversion/ReluConverter.h index 3fd1d0f..e1e82ae 100644 --- a/compiler/exo-tflite/src/Conversion/ReluConverter.h +++ b/compiler/exo-tflite/src/Conversion/ReluConverter.h @@ -30,7 +30,7 @@ namespace exo class ReluConverter : public CanonicalNodeConverter { public: - const char *name(void) const final { return "ReluConverter"; } + const char *name(void) const final { return "exo::ReluConverter"; } public: bool convert(loco::ReLU *origin) final; diff --git a/compiler/exo-tflite/src/Conversion/ShapeInferencePass.h b/compiler/exo-tflite/src/Conversion/ShapeInferencePass.h index a05ea75..4db9a43 100644 --- a/compiler/exo-tflite/src/Conversion/ShapeInferencePass.h +++ b/compiler/exo-tflite/src/Conversion/ShapeInferencePass.h @@ -29,7 +29,7 @@ namespace exo class ShapeInferencePass : public logo::Pass { public: - virtual const char *name(void) const { return "ShapeInferencePass"; } + virtual const char *name(void) const { return "exo::ShapeInferencePass"; } public: bool run(loco::Graph *graph); diff --git a/compiler/exo-tflite/src/Conversion/TypeInferencePass.h b/compiler/exo-tflite/src/Conversion/TypeInferencePass.h index ecb1ab4..3e0b710 100644 --- a/compiler/exo-tflite/src/Conversion/TypeInferencePass.h +++ b/compiler/exo-tflite/src/Conversion/TypeInferencePass.h @@ -30,7 +30,7 @@ namespace exo class TypeInferencePass : public logo::Pass { public: - virtual const char *name(void) const { return "TypeInferencePass"; } + virtual const char *name(void) const { return "exo::TypeInferencePass"; } public: bool run(loco::Graph *graph); diff --git a/compiler/exo-tflite/src/ProgressReporter.cpp b/compiler/exo-tflite/src/ProgressReporter.cpp index bfdfb77..ff919da 100644 --- a/compiler/exo-tflite/src/ProgressReporter.cpp +++ b/compiler/exo-tflite/src/ProgressReporter.cpp @@ -52,7 +52,7 @@ void ProgressReporter::notify(const logo::PhaseEventInfo"; + INFO(prime) << "exo::PhaseRunner<" << to_str(strategy()) << ">"; INFO(prime) << "Initial graph"; INFO(prime) << fmt(graph()); } @@ -61,7 +61,7 @@ void ProgressReporter::notify(const logo::PhaseEventInfo - done"; + INFO(prime) << "exo::PhaseRunner<" << to_str(strategy()) << "> - done"; } void ProgressReporter::notify(const logo::PhaseEventInfo *info) -- 2.7.4