1 #include "caffe2/operators/stop_gradient.h" 4 REGISTER_CPU_OPERATOR(StopGradient, StopGradientOp<CPUContext>);
7 OPERATOR_SCHEMA(StopGradient)
10 .AllowInplace({{0, 0}})
11 .IdenticalTypeAndShape()
13 StopGradient is a helper operator that does no actual numerical computation, 14 and in the gradient computation phase stops the gradient from being computed 18 NO_GRADIENT(StopGradient); A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...