Caffe2 - C++ API
A deep learning, cross platform ML framework
rmac_regions_op.h
1 
2 #ifndef CAFFE2_OPERATORS_RMAC_REGIONS_OP_H
3 #define CAFFE2_OPERATORS_RMAC_REGIONS_OP_H
4 
5 #include "caffe2/core/operator.h"
6 
7 namespace caffe2 {
8 
9 template <class Context>
10 class RMACRegionsOp final : public Operator<Context> {
11  public:
12  template <class... Args>
13  explicit RMACRegionsOp(Args&&... args)
14  : Operator<Context>(std::forward<Args>(args)...),
15  scales_(this->template GetSingleArgument<int>("scales", 3)),
16  overlap_(this->template GetSingleArgument<float>("overlap", 0.4f)) {}
17 
18  USE_OPERATOR_CONTEXT_FUNCTIONS;
19 
20  bool RunOnDevice() override;
21 
22  protected:
23  int scales_;
24  float overlap_;
25  Tensor num_rois_;
26 };
27 
28 } // namespace caffe2
29 
30 #endif // CAFFE2_OPERATORS_RMAC_REGIONS_OP_H
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13