Skip to content

Commit 279ebdd

Browse files
author
Yibing Liu
committed
Fix reciprocal op's doc
1 parent fd87c0e commit 279ebdd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

paddle/fluid/operators/activation_op.cc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ limitations under the License. */
1919
namespace paddle {
2020
namespace operators {
2121

22-
#define REGISTER_ACTIVATION_OP_MAKER(OP_NAME, OP_COMMENT) \
23-
class OP_NAME##OpMaker \
24-
: public ::paddle::framework::OpProtoAndCheckerMaker { \
25-
public: \
26-
void Make() override { \
27-
AddInput("X", "Input of " #OP_NAME " operator"); \
28-
AddOutput("Out", "Output of " #OP_NAME " operator").Reuse("X"); \
29-
AddAttr<bool>("use_mkldnn", \
30-
"(bool, default false) Only used in mkldnn kernel") \
31-
.SetDefault(false); \
32-
AddComment(OP_COMMENT); \
33-
} \
22+
#define REGISTER_ACTIVATION_OP_MAKER(OP_NAME, OP_COMMENT) \
23+
class OP_NAME##OpMaker \
24+
: public ::paddle::framework::OpProtoAndCheckerMaker { \
25+
public: \
26+
void Make() override { \
27+
AddInput("X", "Input of " #OP_NAME " operator"); \
28+
AddOutput("Out", "Output of " #OP_NAME " operator").Reuse("X"); \
29+
AddAttr<bool>("use_mkldnn", \
30+
"(default false) Only used in mkldnn kernel") \
31+
.SetDefault(false); \
32+
AddComment(OP_COMMENT); \
33+
} \
3434
}
3535

3636
#define REGISTER_ACTIVATION_OP_GRAD_MAKER(OP_NAME, KERNEL_TYPE) \

0 commit comments

Comments
 (0)