Apollo 10.0
自动驾驶开放平台
fnn_model.proto
浏览该文件的文档.
1syntax = "proto2";
2
3message Vector {
4 repeated double columns = 1;
5}
6
7message Matrix {
8 repeated Vector rows = 1;
9}
10
11message Layer {
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}
26message 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