Skip to content

Commit 1494bb0

Browse files
author
Nikhil Kulkarni
committed
Fix if condition
1 parent 783908a commit 1494bb0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/sagemaker/model.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,10 @@ def _compilation_image_uri(self, region, target_instance_type, framework, framew
279279

280280
if framework == "xgboost":
281281
framework_suffix = "-neo"
282+
elif target_instance_type.startswith("ml_inf"):
283+
framework_prefix = "inferentia-"
282284
else:
283-
if target_instance_type.startswith("ml_inf"):
284-
framework_prefix = "inferentia-"
285-
else:
286-
framework_prefix = "neo-"
285+
framework_prefix = "neo-"
287286

288287
return image_uris.retrieve(
289288
"{}{}{}".format(framework_prefix, framework, framework_suffix),

0 commit comments

Comments
 (0)