1 #ifndef CAFFE2_OPERATORS_CONV_TRANSPOSE_OP_H_ 2 #define CAFFE2_OPERATORS_CONV_TRANSPOSE_OP_H_ 4 #include "caffe2/core/context.h" 5 #include "caffe2/core/operator.h" 6 #include "caffe2/operators/conv_transpose_unpool_op_base.h" 10 template <
typename T,
class Context>
13 USE_CONV_TRANSPOSE_UNPOOL_BASE_FUNCTIONS(Context);
14 template <
class... Args>
18 bool RunOnDeviceWithOrderNCHW()
override;
19 bool RunOnDeviceWithOrderNHWC()
override;
26 INPUT_TAGS(INPUT, FILTER, BIAS);
29 template <
typename T,
class Context>
32 USE_CONV_TRANSPOSE_UNPOOL_BASE_FUNCTIONS(Context);
33 template <
class... Args>
36 no_bias_(this->
template GetSingleArgument<bool>(
"no_bias",
false)) {
38 !(no_bias_ && OutputSize() == 3),
39 "If bias is not present, you should not have 3 grad output.");
42 bool RunOnDeviceWithOrderNCHW()
override;
43 bool RunOnDeviceWithOrderNHWC()
override;
51 INPUT_TAGS(INPUT, FILTER, OUTPUT_GRAD);
52 OUTPUT_TAGS(FILTER_GRAD, BIAS_OR_INPUT_GRAD, INPUT_GRAD);
57 #endif // CAFFE2_OPERATORS_CONV_TRANSPOSE_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...