Caffe2 - C++ API
A deep learning, cross platform ML framework
stop_gradient.cc
1 #include "caffe2/operators/stop_gradient.h"
2 
3 namespace caffe2 {
4 REGISTER_CPU_OPERATOR(StopGradient, StopGradientOp<CPUContext>);
5 
6 // TODO(jiayq): Add example to the doc string.
7 OPERATOR_SCHEMA(StopGradient)
8  .NumInputs(1, 1)
9  .NumOutputs(1, 1)
10  .AllowInplace({{0, 0}})
11  .IdenticalTypeAndShape()
12  .SetDoc(R"DOC(
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
15 through it.
16 )DOC");
17 
18 NO_GRADIENT(StopGradient);
19 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13