Skip to content

Commit a2e2493

Browse files
yl-totrajanikant
authored andcommitted
fix: logic fix
1 parent 40a13fe commit a2e2493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sagemaker/fw_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ def validate_torch_distributed_distribution(
10791079
# in case image_uri is not set, then both are mandatory
10801080
if (
10811081
framework_version not in TORCH_DISTRIBUTED_SUPPORTED_FRAMEWORK_VERSIONS
1082-
or framework_version not in TORCH_DISTRIBUTED_TRAINIUM_SUPPORTED_FRAMEWORK_VERSIONS
1082+
and framework_version not in TORCH_DISTRIBUTED_TRAINIUM_SUPPORTED_FRAMEWORK_VERSIONS
10831083
):
10841084
err_msg += (
10851085
f"Provided framework_version {framework_version} is not supported by"
@@ -1090,7 +1090,7 @@ def validate_torch_distributed_distribution(
10901090
if "py3" not in py_version:
10911091
err_msg += (
10921092
f"Provided py_version {py_version} is not supported by torch_distributed.\n"
1093-
"Please specify py_version>=py3"
1093+
"Please specify py_version>=py3\n"
10941094
)
10951095

10961096
# Check instance compatibility

0 commit comments

Comments
 (0)