From 935fbd4853d8193296c8676611e8a0076baceec1 Mon Sep 17 00:00:00 2001 From: xzl Date: Thu, 28 Sep 2017 16:36:55 +0800 Subject: [PATCH] change batch_size from required to optional with a default value 1 --- proto/TrainerConfig.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/TrainerConfig.proto b/proto/TrainerConfig.proto index b7c2355159..aa4e5f4ca0 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 ]; -- GitLab