class AcceleratorType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Sagemaker.Alpha.AcceleratorType |
Go | github.com/aws/aws-cdk-go/awscdksagemakeralpha/v2#AcceleratorType |
Java | software.amazon.awscdk.services.sagemaker.alpha.AcceleratorType |
Python | aws_cdk.aws_sagemaker_alpha.AcceleratorType |
TypeScript (source) | @aws-cdk/aws-sagemaker-alpha ยป AcceleratorType |
Supported Elastic Inference (EI) instance types for SageMaker instance-based production variants.
EI instances provide on-demand GPU computing for inference.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sagemaker_alpha from '@aws-cdk/aws-sagemaker-alpha';
const acceleratorType = sagemaker_alpha.AcceleratorType.EIA1_LARGE;
Initializer
new AcceleratorType(acceleratorType: string)
Parameters
- acceleratorType
string
Properties
| Name | Type | Description |
|---|---|---|
| static EIA1_LARGE | Accelerator | ml.eia1.large. |
| static EIA1_MEDIUM | Accelerator | ml.eia1.medium. |
| static EIA1_XLARGE | Accelerator | ml.eia1.xlarge. |
| static EIA2_LARGE | Accelerator | ml.eia2.large. |
| static EIA2_MEDIUM | Accelerator | ml.eia2.medium. |
| static EIA2_XLARGE | Accelerator | ml.eia2.xlarge. |
static EIA1_LARGE
Type:
Accelerator
ml.eia1.large.
static EIA1_MEDIUM
Type:
Accelerator
ml.eia1.medium.
static EIA1_XLARGE
Type:
Accelerator
ml.eia1.xlarge.
static EIA2_LARGE
Type:
Accelerator
ml.eia2.large.
static EIA2_MEDIUM
Type:
Accelerator
ml.eia2.medium.
static EIA2_XLARGE
Type:
Accelerator
ml.eia2.xlarge.
Methods
| Name | Description |
|---|---|
| to | Return the accelerator type as a string. |
| static of(acceleratorType) | Builds an AcceleratorType from a given string or token (such as a CfnParameter). |
toString()
public toString(): string
Returns
string
Return the accelerator type as a string.
static of(acceleratorType)
public static of(acceleratorType: string): AcceleratorType
Parameters
- acceleratorType
stringโ An accelerator type as string.
Returns
Builds an AcceleratorType from a given string or token (such as a CfnParameter).

.NET
Go
Java
Python
TypeScript (