AcceleratorType
- class aws_cdk.aws_sagemaker_alpha.AcceleratorType(accelerator_type)
Bases:
object
(experimental) Supported Elastic Inference (EI) instance types for SageMaker instance-based production variants.
EI instances provide on-demand GPU computing for inference.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_sagemaker_alpha as sagemaker_alpha accelerator_type = sagemaker_alpha.AcceleratorType.EIA1_LARGE
- Parameters:
accelerator_type (
str
) –- Stability:
experimental
Methods
- to_string()
(experimental) Return the accelerator type as a string.
- Return type:
str
- Returns:
The accelerator type as a string
- Stability:
experimental
Attributes
- EIA1_LARGE = <aws_cdk.aws_sagemaker_alpha.AcceleratorType object>
- EIA1_MEDIUM = <aws_cdk.aws_sagemaker_alpha.AcceleratorType object>
- EIA1_XLARGE = <aws_cdk.aws_sagemaker_alpha.AcceleratorType object>
- EIA2_LARGE = <aws_cdk.aws_sagemaker_alpha.AcceleratorType object>
- EIA2_MEDIUM = <aws_cdk.aws_sagemaker_alpha.AcceleratorType object>
- EIA2_XLARGE = <aws_cdk.aws_sagemaker_alpha.AcceleratorType object>
Static Methods
- classmethod of(accelerator_type)
(experimental) Builds an AcceleratorType from a given string or token (such as a CfnParameter).
- Parameters:
accelerator_type (
str
) – An accelerator type as string.- Return type:
- Returns:
A strongly typed AcceleratorType
- Stability:
experimental