diff --git a/python/paddle/distributed/auto_parallel/tuner/recorder.py b/python/paddle/distributed/auto_parallel/tuner/recorder.py index de3c9cb84295b9e6aab9c9f929d3e1dfcc19be4d..4d088379d8b3b749cd875b18291fb5c743fc0e33 100644 --- a/python/paddle/distributed/auto_parallel/tuner/recorder.py +++ b/python/paddle/distributed/auto_parallel/tuner/recorder.py @@ -70,7 +70,7 @@ class MetricRecords(object): def __init__(self, direction="min"): if direction not in {"min", "max"}: raise ValueError( - "direction should be one of {min, max}, but got: {}.".format( + "direction should be one of {{min, max}}, but got: {}.".format( direction)) self._direction = direction self._records = {}