1 #include "caffe2/operators/elementwise_sub_op.h" 10 BinaryElementwiseGradientOp<
13 SubFunctor<CPUContext>>);
17 class GetSubGradient 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(Sub, GetSubGradient);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...