Skip to content

Commit 601e055

Browse files
authored
[TorchAcc] fix bcast of output_dir (#1652)
1 parent 25eb0a0 commit 601e055

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def add_version_to_work_dir(work_dir: str) -> str:
109109
version = _get_version(work_dir)
110110
time = dt.datetime.now().strftime('%Y%m%d-%H%M%S')
111111
sub_folder = f'v{version}-{time}'
112-
if dist.is_initialized() and (is_dist() or is_dist_ta()):
112+
if (dist.is_initialized() and is_dist()) or is_dist_ta():
113113
sub_folder = broadcast_string(sub_folder)
114114

115115
work_dir = os.path.join(work_dir, sub_folder)

0 commit comments

Comments
 (0)