> **Experimental**
>
> `@aws-cdk/aws-sagemaker-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# AcceleratorType

Supported Elastic Inference (EI) instance types for SageMaker instance-based production variants.

EI instances provide on-demand GPU computing for inference.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/accelerator-type.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-sagemaker-alpha/lib/accelerator-type.ts#L7)

## Example

```ts
// 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

```ts
new AcceleratorType(acceleratorType: string)
```

## Properties

- `EIA1_LARGE`: [AcceleratorType](/cdk/api/v2/docs/@aws-cdk_aws-sagemaker-alpha.AcceleratorType.html) (static) — ml.eia1.large.

- `EIA1_MEDIUM`: [AcceleratorType](/cdk/api/v2/docs/@aws-cdk_aws-sagemaker-alpha.AcceleratorType.html) (static) — ml.eia1.medium.

- `EIA1_XLARGE`: [AcceleratorType](/cdk/api/v2/docs/@aws-cdk_aws-sagemaker-alpha.AcceleratorType.html) (static) — ml.eia1.xlarge.

- `EIA2_LARGE`: [AcceleratorType](/cdk/api/v2/docs/@aws-cdk_aws-sagemaker-alpha.AcceleratorType.html) (static) — ml.eia2.large.

- `EIA2_MEDIUM`: [AcceleratorType](/cdk/api/v2/docs/@aws-cdk_aws-sagemaker-alpha.AcceleratorType.html) (static) — ml.eia2.medium.

- `EIA2_XLARGE`: [AcceleratorType](/cdk/api/v2/docs/@aws-cdk_aws-sagemaker-alpha.AcceleratorType.html) (static) — ml.eia2.xlarge.

## Methods

- `of(acceleratorType: string): AcceleratorType // chainable` (static) — Builds an AcceleratorType from a given string or token (such as a CfnParameter).

  **Parameters**

  - `acceleratorType` — An accelerator type as string.

  **Returns:** A strongly typed AcceleratorType

- `toString(): string` — Return the accelerator type as a string.

  **Returns:** The accelerator type as a string
