Skip to content

Commit 8c32ed1

Browse files
committed
Fix
1 parent 9ba9a69 commit 8c32ed1

File tree

5 files changed

+1
-350
lines changed

5 files changed

+1
-350
lines changed

paddle/fluid/operators/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ endif()
7575
set(OP_HEADER_DEPS ${OP_HEADER_DEPS} phi common phi_utils static_prim_api get_expected_kernel_func)
7676

7777
register_operators(EXCLUDES py_func_op generated_op1 generated_op2 generated_op3 generated_op4 load_combine_op run_program_op quantize_linear_op
78-
save_combine_op sync_batch_norm_op activation_op ${OP_MKL_DEPS} DEPS ${OP_HEADER_DEPS} processgroup_comm_utils)
78+
save_combine_op sync_batch_norm_op ${OP_MKL_DEPS} DEPS ${OP_HEADER_DEPS} processgroup_comm_utils)
7979

8080
op_library(generated_op UNITY SRCS generated_op1.cc generated_op2.cc generated_op3.cc generated_op4.cc DEPS ${OP_HEADER_DEPS})
8181
op_library(run_program_op DEPS executor_cache ${OP_HEADER_DEPS})
@@ -84,8 +84,6 @@ op_library(quantize_linear_op DEPS phi common)
8484
op_library(save_combine_op DEPS phi)
8585
op_library(load_combine_op DEPS phi)
8686

87-
op_library(activation_op SRCS activation_op.cc DEPS ${OP_HEADER_DEPS})
88-
8987
if (WITH_GPU OR WITH_ROCM)
9088
op_library(sync_batch_norm_op DEPS processgroup_comm_utils phi common)
9189
endif()

paddle/fluid/operators/activation_op.cc

-342
This file was deleted.

paddle/fluid/operators/ops_signature/activation_sig.cc

-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ namespace phi {
4040
#define comma ,
4141

4242
DEFINE_ACT_GRAD_DEPX_OP_ARGMAP(HardTanh, "hardtanh", "t_min" comma "t_max");
43-
DEFINE_ACT_GRAD_DEPX_OP_ARGMAP(Mish, "mish", "threshold");
4443

4544
KernelSignature HardSwishOpArgumentMapping(
4645
const ArgumentMappingContext& ctx UNUSED) {
@@ -50,6 +49,4 @@ KernelSignature HardSwishOpArgumentMapping(
5049
} // namespace phi
5150

5251
PD_REGISTER_BASE_KERNEL_NAME(hard_swish, hardswish);
53-
PD_REGISTER_ARG_MAPPING_FN(mish_grad, phi::MishGradOpArgumentMapping);
54-
5552
PD_REGISTER_ARG_MAPPING_FN(hard_swish, phi::HardSwishOpArgumentMapping);

paddle/phi/ops/yaml/legacy/backward_exclude.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
- max_grad
2626
- mean_double_grad
2727
- mean_grad
28-
- mish_grad
2928
- mp_allreduce_sum_grad
3029
- norm_grad
3130
- pad_double_grad

paddle/phi/ops/yaml/legacy/ops_exclude.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
- mean
5555
- memcpy_d2h
5656
- memcpy_h2d
57-
- mish
5857
- mp_allreduce_sum
5958
- norm
6059
- one_hot

0 commit comments

Comments
 (0)