Interface ForwardConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ForwardConfig.Builder,,ForwardConfig> SdkBuilder<ForwardConfig.Builder,,ForwardConfig> SdkPojo
- Enclosing class:
ForwardConfig
-
Method Summary
Modifier and TypeMethodDescriptiondatumList(Collection<Datum> datumList) The list of input data to feed through the model.datumList(Consumer<Datum.Builder>... datumList) The list of input data to feed through the model.The list of input data to feed through the model.lossFnConfig(Document lossFnConfig) Additional loss function configuration passed to the engine.lossFnName(String lossFnName) The name of the loss function to evaluate during the forward pass.lossFnName(LossFnName lossFnName) The name of the loss function to evaluate during the forward pass.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
lossFnName
The name of the loss function to evaluate during the forward pass.
- Parameters:
lossFnName- The name of the loss function to evaluate during the forward pass.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lossFnName
The name of the loss function to evaluate during the forward pass.
- Parameters:
lossFnName- The name of the loss function to evaluate during the forward pass.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
datumList
The list of input data to feed through the model. Must contain at least one datum, and each datum must have a non-empty modelInput with at least one chunk.
- Parameters:
datumList- The list of input data to feed through the model. Must contain at least one datum, and each datum must have a non-empty modelInput with at least one chunk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datumList
The list of input data to feed through the model. Must contain at least one datum, and each datum must have a non-empty modelInput with at least one chunk.
- Parameters:
datumList- The list of input data to feed through the model. Must contain at least one datum, and each datum must have a non-empty modelInput with at least one chunk.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datumList
The list of input data to feed through the model. Must contain at least one datum, and each datum must have a non-empty modelInput with at least one chunk.
This is a convenience method that creates an instance of theDatum.Builderavoiding the need to create one manually viaDatum.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todatumList(List<Datum>).- Parameters:
datumList- a consumer that will call methods onDatum.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
lossFnConfig
Additional loss function configuration passed to the engine. Supported keys are
clip_low_threshold(valid range: 0 to 1) andclip_high_threshold(valid range: 1 to 10). Unsupported keys are rejected.- Parameters:
lossFnConfig- Additional loss function configuration passed to the engine. Supported keys areclip_low_threshold(valid range: 0 to 1) andclip_high_threshold(valid range: 1 to 10). Unsupported keys are rejected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-