diff --git a/python/paddle/incubate/distributed/fleet/fleet_util.py b/python/paddle/incubate/distributed/fleet/fleet_util.py index 1777afffe9aaf..e0450948e6171 100644 --- a/python/paddle/incubate/distributed/fleet/fleet_util.py +++ b/python/paddle/incubate/distributed/fleet/fleet_util.py @@ -1324,7 +1324,8 @@ def get_online_pass_interval( and "/" not in days and "(" not in days and ")" not in days - ), r"days should not contain [|,;,\,/,(,)]" + and "&" not in days + ), r"days should not contain [|,;,\,/,(,),&]" days = os.popen("echo -n " + days).read().split(" ") assert ( "|" not in hours @@ -1332,8 +1333,9 @@ def get_online_pass_interval( and "\\" not in hours and "/" not in hours and "(" not in hours - and ")" not in days - ), r"hours should not contain [|,;,\,/,(,)]" + and ")" not in hours + and "&" not in hours + ), r"hours should not contain [|,;,\,/,(,),&]" hours = os.popen("echo -n " + hours).read().split(" ") split_interval = int(split_interval) split_per_pass = int(split_per_pass)