File tree Expand file tree Collapse file tree 8 files changed +13
-14
lines changed Expand file tree Collapse file tree 8 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ PD_DECLARE_bool(new_executor_use_local_scope);
45
45
46
46
PHI_DECLARE_bool (check_nan_inf);
47
47
PD_DECLARE_bool (benchmark);
48
- PD_DECLARE_uint64 (executor_log_deps_every_microseconds);
48
+ PHI_DECLARE_uint64 (executor_log_deps_every_microseconds);
49
49
PHI_DECLARE_bool (new_executor_use_cuda_graph);
50
50
PHI_DECLARE_bool (enable_new_ir_in_executor);
51
51
#if defined(PADDLE_WITH_CUDA) || defined(PADDLE_WITH_HIP)
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ limitations under the License. */
26
26
#include " paddle/phi/core/kernel_factory.h"
27
27
#include " paddle/utils/flags.h"
28
28
29
- PD_DECLARE_bool (use_stride_kernel);
29
+ PHI_DECLARE_bool (use_stride_kernel);
30
30
31
31
namespace paddle {
32
32
namespace framework {
Original file line number Diff line number Diff line change 38
38
PHI_DECLARE_bool (use_mkldnn);
39
39
PHI_DECLARE_string (tracer_mkldnn_ops_on);
40
40
PHI_DECLARE_string (tracer_mkldnn_ops_off);
41
- PD_DECLARE_bool (use_stride_kernel);
41
+ PHI_DECLARE_bool (use_stride_kernel);
42
42
43
43
namespace paddle {
44
44
namespace imperative {
Original file line number Diff line number Diff line change 32
32
#include " paddle/fluid/platform/macros.h"
33
33
#include " paddle/phi/core/compat/arg_map_context.h"
34
34
35
- PD_DECLARE_bool (use_stride_kernel);
35
+ PHI_DECLARE_bool (use_stride_kernel);
36
36
namespace paddle {
37
37
namespace imperative {
38
38
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ typedef SSIZE_T ssize_t;
69
69
#include " paddle/utils/pybind.h"
70
70
71
71
PHI_DECLARE_bool (set_to_1d);
72
- PD_DECLARE_bool (use_stride_kernel);
72
+ PHI_DECLARE_bool (use_stride_kernel);
73
73
74
74
namespace paddle {
75
75
namespace pybind {
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ See the License for the specific language governing permissions and
13
13
limitations under the License. */
14
14
15
15
#include " paddle/phi/api/lib/api_gen_utils.h"
16
+ #include " paddle/phi/core/flags.h"
16
17
#include " paddle/phi/core/visit_type.h"
17
18
#include " paddle/phi/kernels/strided_copy_kernel.h"
18
- #include " paddle/utils/flags.h"
19
19
20
- PD_DECLARE_bool (use_stride_kernel);
20
+ PHI_DECLARE_bool (use_stride_kernel);
21
21
22
22
#include " glog/logging.h"
23
23
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ limitations under the License. */
21
21
#include " paddle/phi/api/lib/utils/allocator.h"
22
22
#include " paddle/phi/backends/context_pool.h"
23
23
#include " paddle/phi/core/distributed/auto_parallel/dist_tensor.h"
24
+ #include " paddle/phi/core/flags.h"
24
25
#include " paddle/phi/core/kernel_registry.h"
25
26
#include " paddle/phi/core/tensor_utils.h"
26
27
#include " paddle/phi/core/visit_type.h"
27
28
#include " paddle/phi/kernels/cast_kernel.h"
28
29
#include " paddle/phi/kernels/contiguous_kernel.h"
29
30
#include " paddle/phi/kernels/transfer_layout_kernel.h"
30
- #include " paddle/utils/flags.h"
31
31
32
- PD_DECLARE_bool (use_stride_kernel);
32
+ PHI_DECLARE_bool (use_stride_kernel);
33
33
34
34
namespace paddle {
35
35
namespace experimental {
Original file line number Diff line number Diff line change 25
25
#if defined(PADDLE_WITH_CUSTOM_DEVICE)
26
26
#include " paddle/phi/backends/custom/custom_device_op_list.h"
27
27
#endif
28
- #include " paddle/fluid/platform/flags.h"
29
28
#include " paddle/phi/core/compat/op_utils.h"
29
+ #include " paddle/phi/core/flags.h"
30
30
#include " paddle/utils/string/string_helper.h"
31
31
32
- PADDLE_DEFINE_EXPORTED_bool (
33
- use_stride_kernel,
34
- true ,
35
- " Whether to use strdie kernel if op support stride." );
32
+ PHI_DEFINE_EXPORTED_bool (use_stride_kernel,
33
+ true ,
34
+ " Whether to use strdie kernel if op support stride." );
36
35
37
36
PD_DECLARE_int32 (low_precision_op_list);
38
37
PD_DECLARE_bool (enable_api_kernel_fallback);
You can’t perform that action at this time.
0 commit comments