@@ -83,7 +83,7 @@ class CompareOp : public framework::OperatorWithKernel {
83
83
} // namespace operators
84
84
} // namespace paddle
85
85
86
- #define REGISTER_LOGICAL_OP (op_type, _equation ) \
86
+ #define REGISTER_COMPARE_OP (op_type, _equation ) \
87
87
struct _ ##op_type##Comment { \
88
88
static char type[]; \
89
89
static char equation[]; \
@@ -96,11 +96,11 @@ class CompareOp : public framework::OperatorWithKernel {
96
96
::paddle::operators::CompareOpInferShape<_##op_type##Comment>, \
97
97
::paddle::framework::EmptyGradOpMaker);
98
98
99
- REGISTER_LOGICAL_OP (less_than, " Out = X < Y" );
100
- REGISTER_LOGICAL_KERNEL (less_than, CPU, paddle::operators::LessThanFunctor);
101
- REGISTER_LOGICAL_OP (less_equal, " Out = X <= Y" );
102
- REGISTER_LOGICAL_KERNEL (less_equal, CPU, paddle::operators::LessEqualFunctor);
103
- REGISTER_LOGICAL_OP (equal, " Out = X == Y" );
104
- REGISTER_LOGICAL_KERNEL (equal, CPU, paddle::operators::EqualFunctor);
105
- REGISTER_LOGICAL_OP (not_equal, " Out = X != Y" );
106
- REGISTER_LOGICAL_KERNEL (not_equal, CPU, paddle::operators::NotEqualFunctor);
99
+ REGISTER_COMPARE_OP (less_than, " Out = X < Y" );
100
+ REGISTER_COMPARE_KERNEL (less_than, CPU, paddle::operators::LessThanFunctor);
101
+ REGISTER_COMPARE_OP (less_equal, " Out = X <= Y" );
102
+ REGISTER_COMPARE_KERNEL (less_equal, CPU, paddle::operators::LessEqualFunctor);
103
+ REGISTER_COMPARE_OP (equal, " Out = X == Y" );
104
+ REGISTER_COMPARE_KERNEL (equal, CPU, paddle::operators::EqualFunctor);
105
+ REGISTER_COMPARE_OP (not_equal, " Out = X != Y" );
106
+ REGISTER_COMPARE_KERNEL (not_equal, CPU, paddle::operators::NotEqualFunctor);
0 commit comments