Caffe2 - C++ API
A deep learning, cross platform ML framework
locally_connected_op_util.h
1 #ifndef CAFFE2_OPERATORS_LOCALLY_CONNECTED_OP_UTIL_H_
2 #define CAFFE2_OPERATORS_LOCALLY_CONNECTED_OP_UTIL_H_
3 
4 #include <vector>
5 
6 #include "caffe2/core/types.h"
7 
8 namespace caffe2 {
9 namespace lc_op_util {
10 
11 struct ShapeParams {
12  int N;
13  int C;
14  int M;
15  int input_image_size;
16  int output_image_size;
17  int kernel_size;
18  std::vector<int> input_image_dims;
19  std::vector<int> column_dims;
20  std::vector<int> column_transposed_dims;
21  std::vector<int> Y_transposed_dims;
22 };
23 
25  int N;
26  int C;
27  int M;
28  int X_H;
29  int X_W;
30  int Y_H;
31  int Y_W;
32 };
33 
34 void SetColumnBufferShapeImpl(
35  int N,
36  int kernel_dim,
37  int output_image_size,
38  StorageOrder order,
39  std::vector<int>* column_dims,
40  std::vector<int>* column_transposed_dims,
41  std::vector<int>* column_axes,
42  std::vector<int>* column_transposed_axes);
43 
44 void SetYBufferShapeImpl(
45  int N,
46  int M,
47  int output_image_size,
48  StorageOrder order,
49  std::vector<int>* Y_dims,
50  std::vector<int>* Y_transposed_dims,
51  std::vector<int>* Y_axes,
52  std::vector<int>* Y_transposed_axes);
53 
54 } // namespace lc_op_util
55 } // namespace caffe2
56 
57 #endif // CAFFE2_OPERATORS_LOCALLY_CONNECTED_OP_UTIL_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...