@Generated(value="software.amazon.awssdk:codegen") public class ResourceConfig extends Object implements StructuredPojo, ToCopyableBuilder<ResourceConfig.Builder,ResourceConfig>
Describes the resources, including ML compute instances and ML storage volumes, to use for model training.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResourceConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResourceConfig.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
instanceCount()
The number of ML compute instances to use.
|
TrainingInstanceType |
instanceType()
The ML compute instance type.
|
String |
instanceTypeAsString()
The ML compute instance type.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
static Class<? extends ResourceConfig.Builder> |
serializableBuilderClass() |
ResourceConfig.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
Integer |
volumeSizeInGB()
The size of the ML storage volume that you want to provision.
|
copypublic TrainingInstanceType instanceType()
The ML compute instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType will
return TrainingInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from instanceTypeAsString().
TrainingInstanceTypepublic String instanceTypeAsString()
The ML compute instance type.
If the service returns an enum value that is not available in the current SDK version, instanceType will
return TrainingInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from instanceTypeAsString().
TrainingInstanceTypepublic Integer instanceCount()
The number of ML compute instances to use. For distributed training, provide a value greater than 1.
public Integer volumeSizeInGB()
The size of the ML storage volume that you want to provision.
ML storage volumes store model artifacts and incremental states. Training algorithms might also use the ML
storage volume for scratch space. If you want to store the training data in the ML storage volume, choose
File as the TrainingInputMode in the algorithm specification.
You must specify sufficient ML storage for your scenario.
Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume type.
ML storage volumes store model artifacts and incremental states. Training algorithms might also use the
ML storage volume for scratch space. If you want to store the training data in the ML storage volume,
choose File as the TrainingInputMode in the algorithm specification.
You must specify sufficient ML storage for your scenario.
Amazon SageMaker supports only the General Purpose SSD (gp2) ML storage volume type.
public ResourceConfig.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<ResourceConfig.Builder,ResourceConfig>public static ResourceConfig.Builder builder()
public static Class<? extends ResourceConfig.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.