From d412a5ea21bff386f47ef79ef182d3e86466c175 Mon Sep 17 00:00:00 2001 From: Haichao-Zhang Date: Wed, 2 Nov 2016 13:05:59 -0700 Subject: [PATCH] add user_arg to LayerConfig (#315) --- proto/ModelConfig.proto.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/proto/ModelConfig.proto.m4 b/proto/ModelConfig.proto.m4 index 79e76b6bf1..3fb96dd5fe 100644 --- a/proto/ModelConfig.proto.m4 +++ b/proto/ModelConfig.proto.m4 @@ -382,6 +382,15 @@ sinclude(`ModelConfigLayer.proto.m4') // bias size optional uint32 bias_size = 48 [default = 0]; + + // this parameter can be used as a user-defined parameter when necessary, + // without changing the proto file. + // e.g., when a new layer with a user-defined parameter is implemented, + // it can be used to pass that parameter, without modifying the proto file. + // string type is used for flexibility: different types can be converted + // to string and reinterpreted in the user's own layer implementation. + optional string user_arg = 49; + } message EvaluatorConfig { -- GitLab