File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,6 @@ class ElementwiseOp : public framework::OperatorWithKernel {
42
42
}
43
43
};
44
44
45
- class ElementwiseOpInferVarType : public framework ::VarTypeInference {
46
- public:
47
- void operator ()(const framework::OpDesc& op_desc,
48
- framework::BlockDesc* block) const override {
49
- auto x_var = op_desc.Input (" X" )[0 ];
50
- auto out_var = op_desc.Output (" Out" )[0 ];
51
- block->Var (out_var)->SetType (block->Var (x_var)->GetType ());
52
- }
53
- };
54
-
55
45
class ElementwiseOpMaker : public framework ::OpProtoAndCheckerMaker {
56
46
public:
57
47
void Make () final {
@@ -148,6 +138,5 @@ class ElementwiseOpGrad : public framework::OperatorWithKernel {
148
138
}; \
149
139
REGISTER_OPERATOR (op_type, ::paddle::operators::ElementwiseOp, \
150
140
__ElemwiseOp##op_type##Maker__, \
151
- ::paddle::operators::ElementwiseOpInferVarType, \
152
141
::paddle::framework::DefaultGradOpDescMaker<true >); \
153
142
REGISTER_OPERATOR (op_type##_grad, ::paddle::operators::ElementwiseOpGrad)
You can’t perform that action at this time.
0 commit comments