machine-learning/triton/amazon-sagamaker-triton-resnet-50/deploy/src/deploy.py
Function deploy
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def deploy() -> None:
model_name = "resnet-50"
# `sagemaker_execution_role = sagemaker.get_execution_role()` only works in the Jupyter notebook hosted by Amazon SageMaker
aws_account_id = boto3.client("sts").get_caller_identity()["Account"]