From 17b86dcf0707907ef7c2e575e9e791818874bbab Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=EC=83=81=EA=B7=9C/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 4 Dec 2019 15:20:08 +0900 Subject: [PATCH] [nnpkg_run] rename namespace NNPackageRun to nnpkg_run (#9369) It renames namespace name for nnpackage_run. It was snake style. However, I would like to use same naming style of `neurun`. Signed-off-by: Sanggyu Lee --- tests/tools/nnpackage_run/src/allocation.h | 2 +- tests/tools/nnpackage_run/src/args.cc | 4 ++-- tests/tools/nnpackage_run/src/args.h | 4 ++-- tests/tools/nnpackage_run/src/h5formatter.cc | 4 ++-- tests/tools/nnpackage_run/src/h5formatter.h | 2 +- tests/tools/nnpackage_run/src/nnfw_util.cc | 2 +- tests/tools/nnpackage_run/src/nnfw_util.h | 2 +- tests/tools/nnpackage_run/src/nnpackage_run.cc | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/tools/nnpackage_run/src/allocation.h b/tests/tools/nnpackage_run/src/allocation.h index efd7f12..ea4672f 100644 --- a/tests/tools/nnpackage_run/src/allocation.h +++ b/tests/tools/nnpackage_run/src/allocation.h @@ -20,7 +20,7 @@ #include #include -namespace NNPackageRun +namespace nnpkg_run { class Allocation { diff --git a/tests/tools/nnpackage_run/src/args.cc b/tests/tools/nnpackage_run/src/args.cc index a01dec5..2233a5e 100644 --- a/tests/tools/nnpackage_run/src/args.cc +++ b/tests/tools/nnpackage_run/src/args.cc @@ -19,7 +19,7 @@ #include #include -namespace NNPackageRun +namespace nnpkg_run { Args::Args(const int argc, char **argv) noexcept @@ -136,4 +136,4 @@ void Args::Parse(const int argc, char **argv) } } -} // end of namespace NNPackageRun +} // end of namespace nnpkg_run diff --git a/tests/tools/nnpackage_run/src/args.h b/tests/tools/nnpackage_run/src/args.h index 9af514a..7e1d50e 100644 --- a/tests/tools/nnpackage_run/src/args.h +++ b/tests/tools/nnpackage_run/src/args.h @@ -22,7 +22,7 @@ namespace po = boost::program_options; -namespace NNPackageRun +namespace nnpkg_run { class Args @@ -58,6 +58,6 @@ private: bool _write_report; }; -} // end of namespace NNPackageRun +} // end of namespace nnpkg_run #endif // __NNPACKAGE_RUN_ARGS_H__ diff --git a/tests/tools/nnpackage_run/src/h5formatter.cc b/tests/tools/nnpackage_run/src/h5formatter.cc index c2bfdfc..f8869ca 100644 --- a/tests/tools/nnpackage_run/src/h5formatter.cc +++ b/tests/tools/nnpackage_run/src/h5formatter.cc @@ -24,7 +24,7 @@ #include #include -namespace NNPackageRun +namespace nnpkg_run { static const char *h5_value_grpname = "value"; @@ -115,4 +115,4 @@ void H5Formatter::dumpOutputs(const std::string &filename, std::vector #include "nnfw.h" -namespace NNPackageRun +namespace nnpkg_run { uint64_t num_elems(const nnfw_tensorinfo *ti) { diff --git a/tests/tools/nnpackage_run/src/nnfw_util.h b/tests/tools/nnpackage_run/src/nnfw_util.h index 8d1260b..6fe547e 100644 --- a/tests/tools/nnpackage_run/src/nnfw_util.h +++ b/tests/tools/nnpackage_run/src/nnfw_util.h @@ -28,7 +28,7 @@ } \ } while (0) -namespace NNPackageRun +namespace nnpkg_run { uint64_t num_elems(const nnfw_tensorinfo *ti); uint64_t bufsize_for(const nnfw_tensorinfo *ti); diff --git a/tests/tools/nnpackage_run/src/nnpackage_run.cc b/tests/tools/nnpackage_run/src/nnpackage_run.cc index d42f251..3bf2d38 100644 --- a/tests/tools/nnpackage_run/src/nnpackage_run.cc +++ b/tests/tools/nnpackage_run/src/nnpackage_run.cc @@ -31,7 +31,7 @@ #include -namespace NNPackageRun +namespace nnpkg_run { template void randomData(RandomGenerator &randgen, void *data, uint64_t size) @@ -97,7 +97,7 @@ NNFW_STATUS resolve_op_backend(nnfw_session *session) int main(const int argc, char **argv) { - using namespace NNPackageRun; + using namespace nnpkg_run; Args args(argc, argv); auto nnpackage_path = args.getPackageFilename(); -- 2.7.4