class AcceleratorType
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.Tasks.AcceleratorType |
Java | software.amazon.awscdk.services.stepfunctions.tasks.AcceleratorType |
Python | aws_cdk.aws_stepfunctions_tasks.AcceleratorType |
TypeScript (source) | @aws-cdk/aws-stepfunctions-tasks » AcceleratorType |
The size of the Elastic Inference (EI) instance to use for the production variant.
EI instances provide on-demand GPU computing for inference
See also: https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as stepfunctions_tasks from '@aws-cdk/aws-stepfunctions-tasks';
const acceleratorType = new stepfunctions_tasks.AcceleratorType('instanceTypeIdentifier');
Initializer
new AcceleratorType(instanceTypeIdentifier: string)
Parameters
- instanceTypeIdentifier
string
Methods
Name | Description |
---|---|
to | Return the accelerator type as a dotted string. |
static of(acceleratorClass, instanceSize) | AcceleratorType. |
String()
topublic toString(): string
Returns
string
Return the accelerator type as a dotted string.
static of(acceleratorClass, instanceSize)
public static of(acceleratorClass: AcceleratorClass, instanceSize: InstanceSize): AcceleratorType
Parameters
- acceleratorClass
Accelerator
Class - instanceSize
Instance
Size
Returns
AcceleratorType.
This class takes a combination of a class and size.