framework_name_from_image: Extract the framework and Python version from the image name.

View source: R/fw_utils.R

framework_name_from_imageR Documentation

Extract the framework and Python version from the image name.

Description

Extract the framework and Python version from the image name.

Usage

framework_name_from_image(image_uri)

Arguments

image_uri

(str): Image URI, which should be one of the following forms:

  • legacy: '<account>.dkr.ecr.<region>.amazonaws.com/sagemaker-<fw>-<py_ver>-<device>:<container_version>'

  • legacy: '<account>.dkr.ecr.<region>.amazonaws.com/sagemaker-<fw>-<py_ver>-<device>:<fw_version>-<device>-<py_ver>'

  • current: '<account>.dkr.ecr.<region>.amazonaws.com/sagemaker-<fw>:<fw_version>-<device>-<py_ver>'

  • current: '<account>.dkr.ecr.<region>.amazonaws.com/sagemaker-rl-<fw>:<rl_toolkit><rl_version>-<device>-<py_ver>'

  • current: '<account>.dkr.ecr.<region>.amazonaws.com/<fw>-<image_scope>:<fw_version>-<device>-<py_ver>'

Value

tuple: A tuple containing:

  • str: The framework name

  • str: The Python version

  • str: The image tag

  • str: If the TensorFlow image is script mode


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.