From 432fda51aa615bba9f4d2296e6052638637a0935 Mon Sep 17 00:00:00 2001 From: songhao Date: Fri, 21 Jun 2019 10:47:52 +0800 Subject: [PATCH] fix bug in Class MultiSlotDataGenerator's function _gen_str, test=develop (#18222) --- python/paddle/fluid/incubate/data_generator/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/incubate/data_generator/__init__.py b/python/paddle/fluid/incubate/data_generator/__init__.py index 0407d67ea4..0d376ee973 100644 --- a/python/paddle/fluid/incubate/data_generator/__init__.py +++ b/python/paddle/fluid/incubate/data_generator/__init__.py @@ -312,7 +312,7 @@ class MultiSlotDataGenerator(DataGenerator): ) if name != self._proto_info[index][0]: raise ValueError( - "the field name of two given line are not match: require<%s>, get<%d>." + "the field name of two given line are not match: require<%s>, get<%s>." % (self._proto_info[index][0], name)) if output: output += " " -- GitLab