1 #ifndef CAFFE2_MAP_OP_H_ 2 #define CAFFE2_MAP_OP_H_ 4 #include "caffe2/core/context.h" 5 #include "caffe2/core/operator.h" 9 template <
typename T,
class Context>
12 USE_OPERATOR_CONTEXT_FUNCTIONS;
14 template <
class... Args>
18 this->
template GetSingleArgument<int32_t>(
"buffer_size", 1000)),
21 bool RunOnDevice()
override;
24 using BufferDataType = std::pair<float, int>;
26 std::vector<std::vector<BufferDataType>> buffers_;
32 INPUT_TAGS(PREDICTION, LABEL);
37 BufferPredictions(
const float* Xdata,
const int* labelData,
int N,
int D);
42 #endif // CAFFE2_MAP_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...