Apollo 11.0
自动驾驶开放平台
network_layers.proto
浏览该文件的文档.
1syntax = "proto2";
2
3package apollo.prediction;
4
5message TensorParameter {
6 repeated float data = 1 [packed = true];
7 repeated int32 shape = 2;
8}
9
10message InputParameter {
11 repeated int32 input_shape = 1;
12 optional string dtype = 2; // data type of the input
13 optional bool sparse = 3;
14}
15
16message DenseParameter {
17 optional int32 units = 1;
18 optional string activation = 2;
19 optional bool use_bias = 3;
20 optional TensorParameter weights = 4;
21 optional TensorParameter bias = 5;
22}
23
24message Conv1dParameter {
25 repeated int32 shape = 1;
26 optional bool use_bias = 2;
27 optional TensorParameter kernel = 3;
28 optional TensorParameter bias = 4;
29 optional int32 stride = 5;
30}
31
32message MaxPool1dParameter {
33 optional int32 kernel_size = 1;
34 optional int32 stride = 2;
35}
36
37message AvgPool1dParameter {
38 optional int32 kernel_size = 1;
39 optional int32 stride = 2;
40}
41
42message BatchNormalizationParameter {
43 optional double epsilon = 1 [default = 1e-5];
44 optional int32 axis = 2;
45 optional bool center = 3;
46 optional bool scale = 4;
47 optional float momentum = 5;
48 optional TensorParameter mu = 6;
49 optional TensorParameter sigma = 7;
50 optional TensorParameter gamma = 8;
51 optional TensorParameter beta = 9;
52}
53
54message LSTMParameter {
55 optional int32 units = 1;
56 optional bool return_sequences = 2;
57 optional bool stateful = 3;
58 optional string activation = 4;
59 optional string recurrent_activation = 5;
60 optional bool use_bias = 6;
61 optional bool unit_forget_bias = 7 [default = true];
62 optional bool go_backwards = 8 [default = false];
63 optional bool unroll = 9 [default = false];
64 optional int32 implementation = 10 [default = 0];
65
66 optional TensorParameter weights_input = 15;
67 optional TensorParameter weights_forget = 16;
68 optional TensorParameter weights_cell = 17;
69 optional TensorParameter weights_output = 18;
70 optional TensorParameter bias_input = 19;
71 optional TensorParameter bias_forget = 20;
72 optional TensorParameter bias_cell = 21;
73 optional TensorParameter bias_output = 22;
74
75 optional TensorParameter recurrent_weights_input = 25;
76 optional TensorParameter recurrent_weights_forget = 26;
77 optional TensorParameter recurrent_weights_cell = 27;
78 optional TensorParameter recurrent_weights_output = 28;
79}
80
81message ActivationParameter {
82 optional string activation = 1;
83}
84
85message FlattenParameter {}
86
87message ConcatenateParameter {
88 optional int32 axis = 1;
89}
90
91message LayerParameter {
92 optional string type = 1;
93 optional string name = 2;
94 optional int32 order_number = 3;
95 oneof oneof_layers {
96 InputParameter input = 4;
97 ActivationParameter activation = 5;
98 DenseParameter dense = 6;
99 BatchNormalizationParameter batch_normalization = 7;
100 LSTMParameter lstm = 8;
101 FlattenParameter flatten = 9;
102 ConcatenateParameter concatenate = 10;
103 Conv1dParameter conv1d = 11;
104 MaxPool1dParameter maxpool1d = 12;
105 AvgPool1dParameter avgpool1d = 13;
106 }
107}