File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,18 @@ limitations under the License. */
19
19
namespace paddle {
20
20
namespace operators {
21
21
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
+ } \
34
34
}
35
35
36
36
#define REGISTER_ACTIVATION_OP_GRAD_MAKER (OP_NAME, KERNEL_TYPE ) \
You can’t perform that action at this time.
0 commit comments