From f5aa29e87eb777c84f5af6844975a359008f2b23 Mon Sep 17 00:00:00 2001 From: Liangliang He Date: Wed, 30 Aug 2017 13:09:15 +0800 Subject: [PATCH] Minor fixes --- mace/core/net.cc | 2 +- mace/core/registry.h | 1 + mace/examples/README.md | 6 +++++- mace/ops/relu.cc | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mace/core/net.cc b/mace/core/net.cc index 2933df8c..22956876 100644 --- a/mace/core/net.cc +++ b/mace/core/net.cc @@ -55,4 +55,4 @@ unique_ptr CreateNet( } -} // namespace mace \ No newline at end of file +} // namespace mace diff --git a/mace/core/registry.h b/mace/core/registry.h index f0989335..e37a51ca 100644 --- a/mace/core/registry.h +++ b/mace/core/registry.h @@ -26,6 +26,7 @@ class Registry { unique_ptr Create(const SrcType& key, Args ... args) { if (registry_.count(key) == 0) { + VLOG(2) << "Key not registered: " << key; return nullptr; } return registry_[key](args...); diff --git a/mace/examples/README.md b/mace/examples/README.md index 4feb5c8d..b9be3027 100644 --- a/mace/examples/README.md +++ b/mace/examples/README.md @@ -3,7 +3,11 @@ Examples * Build the example (e.g., with armeabi-v7a target) ``` -bazel build mace/examples:helloworld \ +# To enable debug mode build, use '-c dbg' flag. +# To check the underlying commands executed, use '-s' flag. +# TO check the failed command, use '--verbose_failures' flag. + +bazel build -c opt mace/examples:helloworld \ --crosstool_top=//external:android/crosstool \ --host_crosstool_top=@bazel_tools//tools/cpp:toolchain \ --cpu=armeabi-v7a diff --git a/mace/ops/relu.cc b/mace/ops/relu.cc index a31c25dd..94646e0f 100644 --- a/mace/ops/relu.cc +++ b/mace/ops/relu.cc @@ -25,4 +25,4 @@ bool ReluOp::Run() { REGISTER_CPU_OPERATOR(Relu, ReluOp); -} // namespace mace \ No newline at end of file +} // namespace mace -- GitLab