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

fix dynamic flag bug on mac (#41571) (#41660)

cherry-pick #41571
上级 48155193
...@@ -535,6 +535,11 @@ PADDLE_DEFINE_EXPORTED_double( ...@@ -535,6 +535,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.
先完成此消息的编辑!
想要评论请 注册