Caffe2 - C++ API
A deep learning, cross platform ML framework
multi_class_accuracy_op.h
1 
17 #ifndef CAFFE2_OPERATORS_MULTI_CLASS_ACCURACY_OP_H_
18 #define CAFFE2_OPERATORS_MULTI_CLASS_ACCURACY_OP_H_
19 
20 #include "caffe2/core/context.h"
21 #include "caffe2/core/operator.h"
22 
23 namespace caffe2 {
24 
25 template <typename T, class Context>
26 class MultiClassAccuracyOp final : public Operator<Context> {
27  public:
28  USE_SIMPLE_CTOR_DTOR(MultiClassAccuracyOp);
29  USE_OPERATOR_CONTEXT_FUNCTIONS;
30  bool RunOnDevice() override;
31 
32  protected:
33  INPUT_TAGS(PREDICTION, LABEL);
34 };
35 
36 } // namespace caffe2
37 
38 #endif // CAFFE2_OPERATORS_MULTI_CLASS_ACCURACY_OP_H_
Copyright (c) 2016-present, Facebook, Inc.