Skip to content

Commit afd087e

Browse files
author
Mohamed Zeidan
committed
added for js estimator
1 parent 3089712 commit afd087e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sagemaker/jumpstart/estimator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252

5353
from sagemaker.serverless.serverless_inference_config import ServerlessInferenceConfig
5454
from sagemaker.workflow.entities import PipelineVariable
55+
from sagemaker.telemetry.telemetry_logging import _telemetry_emitter
56+
from sagemaker.telemetry.constants import Feature
5557

5658

5759
class JumpStartEstimator(Estimator):
@@ -60,6 +62,7 @@ class JumpStartEstimator(Estimator):
6062
This class sets defaults based on the model ID and version.
6163
"""
6264

65+
@_telemetry_emitter(feature=Feature.JUMPSTART, func_name="jumpstart_estimator.create")
6366
def __init__(
6467
self,
6568
model_id: Optional[str] = None,
@@ -646,6 +649,7 @@ def _validate_model_id_and_get_type_hook():
646649

647650
super(JumpStartEstimator, self).__init__(**estimator_init_kwargs.to_kwargs_dict())
648651

652+
@_telemetry_emitter(feature=Feature.JUMPSTART, func_name="jumpstart_estimator.fit")
649653
def fit(
650654
self,
651655
inputs: Optional[Union[str, Dict, TrainingInput, FileSystemInput]] = None,
@@ -833,6 +837,7 @@ def attach(
833837
additional_kwargs=additional_kwargs,
834838
)
835839

840+
@_telemetry_emitter(feature=Feature.JUMPSTART, func_name="jumpstart_estimator.deploy")
836841
def deploy(
837842
self,
838843
initial_instance_count: Optional[int] = None,

0 commit comments

Comments
 (0)