Caffe2 - C++ API
A deep learning, cross platform ML framework
arg_max_op.h
1 #ifndef CAFFE2_OPERATORS_ARG_MAX_OP_H_
2 #define CAFFE2_OPERATORS_ARG_MAX_OP_H_
3 
4 #include "caffe2/core/context.h"
5 #include "caffe2/core/operator.h"
6 
7 namespace caffe2 {
8 
9 template <class Context>
10 class RowWiseArgMaxOp : public Operator<Context> {
11  public:
12  RowWiseArgMaxOp(const OperatorDef& def, Workspace* ws)
13  : Operator<Context>(def, ws) {}
14  USE_OPERATOR_CONTEXT_FUNCTIONS;
15 
16  bool RunOnDevice() override;
17 
18  protected:
19  INPUT_TAGS(X_IN);
20  OUTPUT_TAGS(ROWWISE_ARGMAX_OUT);
21 };
22 
23 } // namespace caffe2
24 
25 #endif // CAFFE2_OPERATORS_DISTANCE_OP_H_
Workspace is a class that holds all the related objects created during runtime: (1) all blobs...
Definition: workspace.h:47
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...