1 #include "caffe2/operators/elementwise_add_op.h" 10 BinaryElementwiseGradientOp<
13 AddFunctor<CPUContext>>);
17 class GetAddGradient final :
public GradientMakerBase {
18 using GradientMakerBase::GradientMakerBase;
20 std::vector<OperatorDef> GetGradientDefs()
override {
21 return SingleGradientDef(
24 std::vector<std::string>{GO(0), I(0), I(1)},
25 std::vector<std::string>{GI(0), GI(1)});
31 REGISTER_GRADIENT(
Add, GetAddGradient);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...