未验证 提交 4bd94636 编写于 作者: C Chen Weihang 提交者: GitHub

fix detail error message error, test=develop (#21170)

上级 cfdd1fc2
...@@ -105,8 +105,9 @@ bool DataFeed::SetFileList(const std::vector<std::string>& files) { ...@@ -105,8 +105,9 @@ bool DataFeed::SetFileList(const std::vector<std::string>& files) {
} }
void DataFeed::SetBatchSize(int batch_size) { void DataFeed::SetBatchSize(int batch_size) {
PADDLE_ENFORCE_GT(batch_size, 0, platform::errors::InvalidArgument( PADDLE_ENFORCE_GT(batch_size, 0,
"Batch size is illegal.", batch_size)); platform::errors::InvalidArgument(
"Batch size %d is illegal.", batch_size));
default_batch_size_ = batch_size; default_batch_size_ = batch_size;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册