Caffe2 - C++ API
A deep learning, cross platform ML framework
integral_image_op.h
1 #ifndef INTEGRAL_IMAGE_OP_H_
2 #define INTEGRAL_IMAGE_OP_H_
3 
4 #include "caffe2/core/context.h"
5 #include "caffe2/core/logging.h"
6 #include "caffe2/core/operator.h"
7 #include "caffe2/utils/math.h"
8 
9 namespace caffe2 {
10 
11 template <typename T, class Context>
12 class IntegralImageOp final : public Operator<Context> {
13  public:
14  template <class... Args>
15  explicit IntegralImageOp(Args&&... args)
16  : Operator<Context>(std::forward<Args>(args)...) {}
17  USE_OPERATOR_CONTEXT_FUNCTIONS;
18 
19  bool RunOnDevice() override;
20 };
21 
22 template <typename T, class Context>
23 class IntegralImageGradientOp final : public Operator<Context> {
24  public:
25  template <class... Args>
26  explicit IntegralImageGradientOp(Args&&... args)
27  : Operator<Context>(std::forward<Args>(args)...) {}
28  USE_OPERATOR_CONTEXT_FUNCTIONS;
29 
30  bool RunOnDevice() override;
31 
32  protected:
33  Tensor row_pass_buffer_;
34 };
35 
36 } // namespace caffe2
37 
38 #endif // INTEGRAL_IMAGE_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13