Apollo
10.0
自动驾驶开放平台
fnn_model.proto
浏览该文件的文档.
1
syntax
=
"proto2"
;
2
3
message
Vector
{
4
repeated
double
columns = 1;
5
}
6
7
message
Matrix
{
8
repeated
Vector
rows = 1;
9
}
10
11
message
Layer
{
12
enum
ActivationFunc
{
13
RELU = 0;
14
TANH = 1;
15
SIGMOID = 2;
16
SOFTMAX = 3;
17
}
18
optional int32 layer_input_dim = 1;
19
optional int32 layer_output_dim = 2;
20
optional
Matrix
layer_input_weight =
21
3;
// weight matrix of |input_dim| x |output_dim|
22
optional
Vector
layer_bias = 4;
// vector of bias, size of |output_dim|
23
optional
ActivationFunc
layer_activation_func = 5;
24
}
25
26
message
FnnModel
{
27
optional int32 dim_input = 1;
28
optional
Vector
samples_mean = 2;
29
optional
Vector
samples_std = 3;
30
optional int32 num_layer = 4;
31
repeated
Layer
layer =
32
5;
// num_layer must equal to first layer layer_input_dim
33
optional int32 dim_output =
34
6;
// dim_ouput must equal to last layer layer_output_dim
35
}
syntax
syntax
Definition
fnn_model.proto:1
FnnModel
Definition
fnn_model.proto:25
Layer
Definition
fnn_model.proto:11
Layer::ActivationFunc
ActivationFunc
Definition
fnn_model.proto:12
Matrix
Definition
fnn_model.proto:7
Vector
Definition
fnn_model.proto:3
modules
tools
prediction
data_pipelines
proto
fnn_model.proto