Class AcceleratorType
The size of the Elastic Inference (EI) instance to use for the production variant.
Inheritance
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AcceleratorType : DeputyBase
Syntax (vb)
Public Class AcceleratorType
Inherits DeputyBase
Remarks
EI instances provide on-demand GPU computing for inference
See: https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.StepFunctions.Tasks;
var acceleratorType = new AcceleratorType("instanceTypeIdentifier");
Synopsis
Constructors
AcceleratorType(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
AcceleratorType(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
AcceleratorType(String) |
Methods
Of(AcceleratorClass, InstanceSize) | AcceleratorType. |
ToString() | Return the accelerator type as a dotted string. |
Constructors
AcceleratorType(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AcceleratorType(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AcceleratorType(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AcceleratorType(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
AcceleratorType(String)
public AcceleratorType(string instanceTypeIdentifier)
Parameters
- instanceTypeIdentifier System.String
Methods
Of(AcceleratorClass, InstanceSize)
AcceleratorType.
public static AcceleratorType Of(AcceleratorClass acceleratorClass, InstanceSize instanceSize)
Parameters
- acceleratorClass AcceleratorClass
- instanceSize InstanceSize
Returns
Remarks
This class takes a combination of a class and size.
ToString()
Return the accelerator type as a dotted string.
public override string ToString()
Returns
System.String