17 #ifndef GROUP_SPATIAL_SOFTMAX_OP_H_ 18 #define GROUP_SPATIAL_SOFTMAX_OP_H_ 20 #include "caffe2/core/context.h" 21 #include "caffe2/core/logging.h" 22 #include "caffe2/core/operator.h" 23 #include "caffe2/utils/math.h" 27 template <
typename T,
class Context>
32 num_classes_(this->
template GetSingleArgument<int>(
"num_classes", 81)),
33 order_(StringToStorageOrder(
34 this->
template GetSingleArgument<string>(
"order",
"NCHW"))) {
36 order_, StorageOrder::NCHW,
"Only NCHW order is supported right now.");
38 USE_OPERATOR_CONTEXT_FUNCTIONS;
40 bool RunOnDevice()
override {
42 CAFFE_NOT_IMPLEMENTED;
50 template <
typename T,
class Context>
55 num_classes_(this->
template GetSingleArgument<int>(
"num_classes", 81)),
56 order_(StringToStorageOrder(
57 this->
template GetSingleArgument<string>(
"order",
"NCHW"))) {
59 order_, StorageOrder::NCHW,
"Only NCHW order is supported right now.");
61 USE_OPERATOR_CONTEXT_FUNCTIONS;
63 bool RunOnDevice()
override {
65 CAFFE_NOT_IMPLEMENTED;
76 #endif // GROUP_SPATIAL_SOFTMAX_OP_H_
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...