未验证 提交 b026840a 编写于 作者: zhouweiwei2014's avatar zhouweiwei2014 提交者: GitHub

fix dynamic flag bug on mac (#41571)

上级 c64d9a44
...@@ -534,6 +534,11 @@ PADDLE_DEFINE_EXPORTED_double( ...@@ -534,6 +534,11 @@ PADDLE_DEFINE_EXPORTED_double(
"you should set FLAGS_local_exe_sub_scope_limit=-1. " "you should set FLAGS_local_exe_sub_scope_limit=-1. "
"The default value is 256 MBytes."); "The default value is 256 MBytes.");
PADDLE_DEFINE_EXPORTED_bool(
reader_queue_speed_test_mode, false,
"If set true, the queue.pop will only get data from queue but not "
"remove the data from queue for speed testing");
/** /**
* MKLDNN related FLAG * MKLDNN related FLAG
* Name: use_mkldnn * Name: use_mkldnn
......
...@@ -32,10 +32,7 @@ ...@@ -32,10 +32,7 @@
#include "paddle/phi/core/ddim.h" #include "paddle/phi/core/ddim.h"
#include "pybind11/stl.h" #include "pybind11/stl.h"
PADDLE_DEFINE_EXPORTED_bool( DECLARE_bool(reader_queue_speed_test_mode);
reader_queue_speed_test_mode, false,
"If set true, the queue.pop will only get data from queue but not "
"remove the data from queue for speed testing");
// disable auto conversion to list in Python // disable auto conversion to list in Python
PYBIND11_MAKE_OPAQUE(paddle::framework::LoDTensorArray); PYBIND11_MAKE_OPAQUE(paddle::framework::LoDTensorArray);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册