Skip to content

Commit

Permalink
fix fleetutil get_online_pass_interval bug (#60023)
Browse files Browse the repository at this point in the history
  • Loading branch information
danleifeng authored Dec 18, 2023
1 parent 5252c5d commit 49bec17
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/paddle/incubate/distributed/fleet/fleet_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,23 @@ def get_online_pass_interval(
... is_data_hourly_placed=False)
"""
assert (
"|" not in days
and ";" not in days
and "\\" not in days
and "/" not in days
and "(" not in days
and ")" not in days
), r"days should not contain [|,;,\,/,(,)]"
days = os.popen("echo -n " + days).read().split(" ")
assert (
"|" not in hours
and ";" not in hours
and "\\" not in hours
and "/" not in hours
and "(" not in hours
and ")" not in days
), 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)
Expand Down

0 comments on commit 49bec17

Please sign in to comment.