diff --git a/proto/TrainerConfig.proto b/proto/TrainerConfig.proto index b7c2355159e66be0a1550d3c8fde9a15346ff7e4..aa4e5f4ca09fc9f2f7c3da3f0a476e149f78e133 100644 --- a/proto/TrainerConfig.proto +++ b/proto/TrainerConfig.proto @@ -19,7 +19,7 @@ import "ModelConfig.proto"; package paddle; message OptimizationConfig { - required int32 batch_size = 3; + optional int32 batch_size = 3 [ default = 1 ]; required string algorithm = 4 [ default = "async_sgd" ]; optional int32 num_batches_per_send_parameter = 5 [ default = 1 ]; optional int32 num_batches_per_get_parameter = 6 [ default = 1 ];