From 4f0383f52ea7e7da06a7b383d736aeccb7d0e512 Mon Sep 17 00:00:00 2001 From: tensor-tang Date: Fri, 27 Jul 2018 13:29:38 +0800 Subject: [PATCH] fix unknown flag --- paddle/fluid/platform/cpu_helper.cc | 3 --- paddle/fluid/platform/init.cc | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/paddle/fluid/platform/cpu_helper.cc b/paddle/fluid/platform/cpu_helper.cc index 6841652b75..234a04b5c2 100644 --- a/paddle/fluid/platform/cpu_helper.cc +++ b/paddle/fluid/platform/cpu_helper.cc @@ -24,9 +24,6 @@ limitations under the License. */ #include #endif -DEFINE_int32(paddle_num_threads, 1, - "Number of threads for each paddle instance."); - namespace paddle { namespace platform { diff --git a/paddle/fluid/platform/init.cc b/paddle/fluid/platform/init.cc index 79a2ca96ed..6f1f0c4796 100644 --- a/paddle/fluid/platform/init.cc +++ b/paddle/fluid/platform/init.cc @@ -23,7 +23,8 @@ limitations under the License. */ #include "paddle/fluid/platform/place.h" #include "paddle/fluid/string/piece.h" -DECLARE_int32(paddle_num_threads); +DEFINE_int32(paddle_num_threads, 1, + "Number of threads for each paddle instance."); namespace paddle { namespace framework { -- GitLab