Caffe2 - C++ API
A deep learning, cross platform ML framework
pool_op_util.h
1 #ifndef CAFFE2_OPERATORS_POOL_OP_UTIL_H_
2 #define CAFFE2_OPERATORS_POOL_OP_UTIL_H_
3 
4 #include "caffe2/core/types.h"
5 #include "caffe2/utils/cpu_neon.h"
6 
7 namespace caffe2 {
8 namespace pool_op_util {
9 
10 bool IsNeon4x4p0s0Eligible(
11  int input_h,
12  int input_w,
13  int output_h,
14  int output_w,
15  int kh,
16  int kw,
17  int stride_h,
18  int stride_w,
19  int pad_t,
20  int pad_l,
21  int pad_b,
22  int pad_r,
23  int dilation_h,
24  int dilation_w,
25  const float* X,
26  float* Y);
27 
28 bool IsNeon2x2p0s0Eligible(
29  int input_h,
30  int input_w,
31  int output_h,
32  int output_w,
33  int kh,
34  int kw,
35  int stride_h,
36  int stride_w,
37  int pad_t,
38  int pad_l,
39  int pad_b,
40  int pad_r,
41  int dilation_h,
42  int dilation_w,
43  const float* X,
44  float* Y);
45 
46 void RunNeonAveragePool4x4p0s0NCHW(
47  int N,
48  int C,
49  int H,
50  int W,
51  const float* X,
52  float* Y);
53 
54 void RunNeonMaxPool2x2p0s0NCHW(
55  int N,
56  int C,
57  int H,
58  int W,
59  const float* X,
60  float* Y);
61 
62 } // namespace pool_op_util
63 } // namespace caffe2
64 
65 #endif // CAFFE2_OPERATORS_POOL_OP_UTIL_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13
Definition: static.cpp:64