Caffe2 - C++ API
A deep learning, cross platform ML framework
conditional_op.h
1 
2 #ifndef CONDITIONAL_OP_H
3 #define CONDITIONAL_OP_H
4 
5 #include "caffe2/core/context.h"
6 #include "caffe2/core/operator.h"
7 #include "caffe2/core/tensor.h"
8 
9 namespace caffe2 {
10 
11 template <class Context>
12 class ConditionalOp final : public Operator<Context> {
13  public:
14  USE_OPERATOR_CONTEXT_FUNCTIONS;
15  ConditionalOp(const OperatorDef& operator_def, Workspace* ws)
16  : Operator<Context>(operator_def, ws) {}
17 
18  bool RunOnDevice() override;
19 };
20 
21 } // caffe2
22 
23 #endif
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 ...