Skip to content

Commit dd51314

Browse files
committed
remove duplicate
1 parent 4dc21f5 commit dd51314

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/sagemaker/jumpstart/cache.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -490,28 +490,6 @@ def get_hub(self, hub_arn: str) -> Dict[str, Any]:
490490
details, _ = self._content_cache.get(JumpStartCachedContentKey(HubDataType.HUB, hub_arn))
491491
return details.formatted_content
492492

493-
def get_hub_model(self, hub_model_arn: str) -> JumpStartModelSpecs:
494-
"""Return JumpStart-compatible specs for a given Hub model
495-
496-
Args:
497-
hub_model_arn (str): Arn for the Hub model to get specs for
498-
"""
499-
500-
details, _ = self._content_cache.get(
501-
JumpStartCachedContentKey(HubDataType.MODEL, hub_model_arn)
502-
)
503-
return details.formatted_content
504-
505-
def get_hub(self, hub_arn: str) -> Dict[str, Any]:
506-
"""Return descriptive info for a given Hub
507-
508-
Args:
509-
hub_arn (str): Arn for the Hub to get info for
510-
"""
511-
512-
details, _ = self._content_cache.get(JumpStartCachedContentKey(HubDataType.HUB, hub_arn))
513-
return details.formatted_content
514-
515493
def clear(self) -> None:
516494
"""Clears the model ID/version and s3 cache."""
517495
self._content_cache.clear()

0 commit comments

Comments
 (0)