File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -804,14 +804,16 @@ def validate_pytorch_distribution(
804
804
`py_version` is not python3 or
805
805
`framework_version` is not in PYTORCHDDP_SUPPORTED_FRAMEWORK_VERSIONS
806
806
"""
807
- if framework_name != "pytorch" :
807
+ if framework_name and framework_name != "pytorch" :
808
808
# We need to validate only for PyTorch framework
809
809
return
810
+
811
+ pytorch_ddp_enabled = False
810
812
if "pytorchddp" in distribution :
811
813
pytorch_ddp_enabled = distribution .get ("pytorchddp" ).get ("enabled" , False )
812
- if not pytorch_ddp_enabled :
813
- # Distribution strategy other than pytorchddp is selected
814
- return
814
+ if not pytorch_ddp_enabled :
815
+ # Distribution strategy other than pytorchddp is selected
816
+ return
815
817
816
818
err_msg = ""
817
819
if not image_uri :
You can’t perform that action at this time.
0 commit comments