1 #include "caffe2/operators/square_root_divide_op.h" 5 REGISTER_CPU_OPERATOR(SquareRootDivide, SquareRootDivideOp<CPUContext>);
6 OPERATOR_SCHEMA(SquareRootDivide)
9 .AllowInplace({{0, 0}})
11 Given DATA tensor with first dimension N and SCALE vector of the same size N 12 produces an output tensor with same dimensions as DATA. Which consists of DATA 13 slices. i-th slice is divided by sqrt(SCALE[i]) elementwise. If SCALE[i] == 0 14 output slice is identical to the input one (no scaling) 33 using GradientMakerBase::GradientMakerBase;
34 vector<OperatorDef> GetGradientDefs()
override {
38 vector<string>{GO(0), I(1)},
39 vector<string>{GI(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 ...