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  template <class... Args>
16  explicit ConditionalOp(Args&&... args)
17  : Operator<Context>(std::forward<Args>(args)...) {}
18 
19  bool RunOnDevice() override;
20 };
21 
22 } // caffe2
23 
24 #endif
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13