17 #include "caffe2/experiments/operators/tt_pad_op.h" 22 REGISTER_CPU_OPERATOR(TTPad, TTPadOp<float, CPUContext>);
23 OPERATOR_SCHEMA(TTPad).NumInputs(1).NumOutputs(2).EnforceInplace({{0, 0}});
25 REGISTER_CPU_OPERATOR(TTPadGradient, TTPadGradientOp<float, CPUContext>);
26 OPERATOR_SCHEMA(TTPadGradient)
29 .EnforceInplace({{0, 0}});
31 class GetTTPadGradient :
public GradientMakerBase {
32 using GradientMakerBase::GradientMakerBase;
33 vector<OperatorDef> GetGradientDefs()
override {
34 return SingleGradientDef(
37 vector<string>{GO(0), O(1)},
38 vector<string>{GI(0)},
43 REGISTER_GRADIENT(TTPad, GetTTPadGradient);
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...