From 4bd94636303f137fdd389b35a4b3bea15cbb0fea Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Thu, 14 Nov 2019 15:19:15 +0800 Subject: [PATCH] fix detail error message error, test=develop (#21170) --- paddle/fluid/framework/data_feed.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/framework/data_feed.cc b/paddle/fluid/framework/data_feed.cc index c4a33e0fb83..c9c663926e6 100644 --- a/paddle/fluid/framework/data_feed.cc +++ b/paddle/fluid/framework/data_feed.cc @@ -105,8 +105,9 @@ bool DataFeed::SetFileList(const std::vector& files) { } void DataFeed::SetBatchSize(int batch_size) { - PADDLE_ENFORCE_GT(batch_size, 0, platform::errors::InvalidArgument( - "Batch size is illegal.", batch_size)); + PADDLE_ENFORCE_GT(batch_size, 0, + platform::errors::InvalidArgument( + "Batch size %d is illegal.", batch_size)); default_batch_size_ = batch_size; } -- GitLab