|
|
@ -29,8 +29,11 @@ class ElementwiseAddOpMaker : public ElementwiseOpMaker {
|
|
|
|
} // namespace paddle
|
|
|
|
} // namespace paddle
|
|
|
|
|
|
|
|
|
|
|
|
namespace ops = paddle::operators;
|
|
|
|
namespace ops = paddle::operators;
|
|
|
|
REGISTER_OP(elementwise_add, ops::ElementwiseOp, ops::ElementwiseAddOpMaker,
|
|
|
|
REGISTER_OPERATOR(elementwise_add, ops::ElementwiseOp,
|
|
|
|
elementwise_add_grad, ops::ElementwiseOpGrad);
|
|
|
|
ops::ElementwiseAddOpMaker, ops::ElementwiseOpInferVarType,
|
|
|
|
|
|
|
|
paddle::framework::DefaultGradOpDescMaker<true>);
|
|
|
|
|
|
|
|
REGISTER_OPERATOR(elementwise_add_grad, ops::ElementwiseOpGrad);
|
|
|
|
|
|
|
|
|
|
|
|
REGISTER_OP_CPU_KERNEL(
|
|
|
|
REGISTER_OP_CPU_KERNEL(
|
|
|
|
elementwise_add,
|
|
|
|
elementwise_add,
|
|
|
|
ops::ElementwiseAddKernel<paddle::platform::CPUDeviceContext, float>,
|
|
|
|
ops::ElementwiseAddKernel<paddle::platform::CPUDeviceContext, float>,
|
|
|
|