1 #include "caffe2/operators/zero_gradient_op.h" 5 REGISTER_CPU_OPERATOR(ZeroGradient, ZeroGradientOp<CPUContext>);
6 OPERATOR_SCHEMA(ZeroGradient)
10 ZeroGradient operators doesn't produce any output blobs. One can use 11 this operator to produce 0 gradient for the input blob. 15 using GradientMakerBase::GradientMakerBase;
16 std::vector<OperatorDef> GetGradientDefs()
override {
21 vector<string>{GI(0)},
22 vector<Argument>{MakeArgument<float>(
"value", 0.0)});
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
static vector< OperatorDef > SingleGradientDef(const Args &...args)
a helper function to allow one to create one single operator def, which is usually the case for many ...