3 #ifndef ROI_ALIGN_ROTATED_GRADIENT_OP_H_ 4 #define ROI_ALIGN_ROTATED_GRADIENT_OP_H_ 6 #include "caffe2/core/context.h" 7 #include "caffe2/core/logging.h" 8 #include "caffe2/core/operator.h" 12 template <
typename T,
class Context>
15 template <
class... Args>
19 this->
template GetSingleArgument<float>(
"spatial_scale", 1.)),
20 pooled_height_(this->
template GetSingleArgument<int>(
"pooled_h", 1)),
21 pooled_width_(this->
template GetSingleArgument<int>(
"pooled_w", 1)),
23 this->
template GetSingleArgument<int>(
"sampling_ratio", -1)) {
24 DCHECK_GT(spatial_scale_, 0);
25 DCHECK_GT(pooled_height_, 0);
26 DCHECK_GT(pooled_width_, 0);
27 DCHECK_GE(sampling_ratio_, 0);
29 USE_OPERATOR_CONTEXT_FUNCTIONS;
31 bool RunOnDevice()
override {
32 CAFFE_NOT_IMPLEMENTED;
44 #endif // ROI_ALIGN_ROTATED_GRADIENT_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...