未验证 提交 d072aaeb 编写于 作者: J JingZhuangzhuang 提交者: GitHub

Modify callstacklevel flag for c++ (#46058)

上级 22c3cdb4
...@@ -659,7 +659,11 @@ PADDLE_DEFINE_EXPORTED_bool(use_mkldnn, false, "Use MKLDNN to run"); ...@@ -659,7 +659,11 @@ PADDLE_DEFINE_EXPORTED_bool(use_mkldnn, false, "Use MKLDNN to run");
* If FLAGS_call_stack_level == 2, the python stack, c++ stack, and error * If FLAGS_call_stack_level == 2, the python stack, c++ stack, and error
* message summary will be shown. * message summary will be shown.
*/ */
#ifdef PADDLE_NO_PYTHON
static const int32_t kDefaultCallStackLevel = 2;
#else
static const int32_t kDefaultCallStackLevel = 1; static const int32_t kDefaultCallStackLevel = 1;
#endif
PADDLE_DEFINE_EXPORTED_int32( PADDLE_DEFINE_EXPORTED_int32(
call_stack_level, call_stack_level,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册