hongbo-miao/hongbomiao.com

View on GitHub
machine-learning/triton/amazon-sagamaker-triton-resnet-50/deploy/src/deploy.py

Summary

Maintainability
A
1 hr
Test Coverage

Function deploy has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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"]

    There are no issues that match your filters.

    Category
    Status