1 #ifndef CAFFE2_OPERATORS_ACCURACY_OP_H_ 2 #define CAFFE2_OPERATORS_ACCURACY_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;
13 template <
class... Args>
16 top_k_(this->
template GetSingleArgument<int>(
"top_k", 1)) {}
18 bool RunOnDevice()
override;
22 INPUT_TAGS(PREDICTION, LABEL);
27 #endif // CAFFE2_OPERATORS_ACCURACY_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...