提交 906c26e5 编写于 作者: S sneaxiy

rename macro name

上级 96cf90c8
...@@ -19,14 +19,14 @@ ...@@ -19,14 +19,14 @@
#include "paddle/fluid/memory/allocation/aligned_allocator.h" #include "paddle/fluid/memory/allocation/aligned_allocator.h"
#include "paddle/fluid/platform/flags.h" #include "paddle/fluid/platform/flags.h"
PADDLE_DEFINE_READONLY_EXPORTED_bool( PADDLE_DEFINE_EXPORTED_READONLY_bool(
free_idle_chunk, false, free_idle_chunk, false,
"Whether to free idle chunk when each allocation is freed. " "Whether to free idle chunk when each allocation is freed. "
"If false, all freed allocation would be cached to speed up next " "If false, all freed allocation would be cached to speed up next "
"allocation request. If true, no allocation would be cached. This " "allocation request. If true, no allocation would be cached. This "
"flag only works when FLAGS_allocator_strategy=auto_growth."); "flag only works when FLAGS_allocator_strategy=auto_growth.");
PADDLE_DEFINE_READONLY_EXPORTED_bool( PADDLE_DEFINE_EXPORTED_READONLY_bool(
free_when_no_cache_hit, false, free_when_no_cache_hit, false,
"Whether to free idle chunks when no cache hit. If true, idle " "Whether to free idle chunks when no cache hit. If true, idle "
"chunk would be freed when no cache hit; if false, idle " "chunk would be freed when no cache hit; if false, idle "
......
...@@ -61,7 +61,7 @@ const ExportedFlagInfoMap &GetExportedFlagInfoMap(); ...@@ -61,7 +61,7 @@ const ExportedFlagInfoMap &GetExportedFlagInfoMap();
#define PADDLE_DEFINE_EXPORTED_bool(name, default_value, doc) \ #define PADDLE_DEFINE_EXPORTED_bool(name, default_value, doc) \
__PADDLE_DEFINE_EXPORTED_FLAG(name, true, bool, bool, default_value, doc) __PADDLE_DEFINE_EXPORTED_FLAG(name, true, bool, bool, default_value, doc)
#define PADDLE_DEFINE_READONLY_EXPORTED_bool(name, default_value, doc) \ #define PADDLE_DEFINE_EXPORTED_READONLY_bool(name, default_value, doc) \
__PADDLE_DEFINE_EXPORTED_FLAG(name, false, bool, bool, default_value, doc) __PADDLE_DEFINE_EXPORTED_FLAG(name, false, bool, bool, default_value, doc)
#define PADDLE_DEFINE_EXPORTED_int32(name, default_value, doc) \ #define PADDLE_DEFINE_EXPORTED_int32(name, default_value, doc) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册