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> X_dims;
19  std::vector<int> column_slice_dims;
20  std::vector<int> column_dims;
21  std::vector<int> column_transposed_dims;
22  std::vector<int> column_axes;
23  std::vector<int> Y_dims;
24  std::vector<int> Y_transposed_dims;
25  std::vector<int> Y_axes;
26 };
27 
29  int N;
30  int C;
31  int M;
32  int X_H;
33  int X_W;
34  int Y_H;
35  int Y_W;
36 };
37 
38 CAFFE2_API void SetColumnBufferShape(
39  int N,
40  int kernel_dim,
41  int output_image_size,
42  const std::vector<int>& output_image_dims,
43  StorageOrder order,
44  std::vector<int>* column_slice_dims,
45  std::vector<int>* column_dims,
46  std::vector<int>* column_transposed_dims,
47  std::vector<int>* column_axes);
48 
49 CAFFE2_API void SetYBufferShape(
50  int N,
51  int M,
52  int output_image_size,
53  StorageOrder order,
54  std::vector<int>* Y_dims,
55  std::vector<int>* Y_transposed_dims,
56  std::vector<int>* Y_axes);
57 
58 } // namespace lc_op_util
59 } // namespace caffe2
60 
61 #endif // CAFFE2_OPERATORS_LOCALLY_CONNECTED_OP_UTIL_H_
Definition: any.cpp:108
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13
Definition: static.cpp:64