Skip to content

Commit 23f09a6

Browse files
committed
Update estimator.py
1 parent 1bda490 commit 23f09a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sagemaker/pytorch/estimator.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,11 @@ def __init__(
284284
"distribution options together.",
285285
distribution
286286
)
287-
distribution = {"smdistributed": {"dataparallel": distribution["pytorchddp"]}}
287+
288+
# convert pytorchddp distribution into smdistributed distribution
289+
distribution = distribution.copy()
290+
distribution["smdistributed"] = {"dataparallel" : distribution["pytorchddp"]}
291+
del distribution["pytorchddp"]
288292

289293
distribution = validate_distribution(
290294
distribution,

0 commit comments

Comments
 (0)