Interface ForwardBackwardResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ForwardBackwardResult.Builder,,ForwardBackwardResult> SdkBuilder<ForwardBackwardResult.Builder,,ForwardBackwardResult> SdkPojo
- Enclosing class:
ForwardBackwardResult
@Mutable
@NotThreadSafe
public static interface ForwardBackwardResult.Builder
extends SdkPojo, CopyableBuilder<ForwardBackwardResult.Builder,ForwardBackwardResult>
-
Method Summary
Modifier and TypeMethodDescriptionlossFnOutputs(Collection<? extends Map<String, TensorData>> lossFnOutputs) The loss function output tensors, keyed by name.lossFnOutputs(Map<String, TensorData>... lossFnOutputs) The loss function output tensors, keyed by name.lossFnOutputType(String lossFnOutputType) The data type of the loss function output tensors.The training metrics emitted by the engine, such as loss values.default ForwardBackwardResult.BuildertokenUsage(Consumer<TrainingTokenUsage.Builder> tokenUsage) The token usage statistics for metering.tokenUsage(TrainingTokenUsage tokenUsage) The token usage statistics for metering.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
-
lossFnOutputType
The data type of the loss function output tensors.
- Parameters:
lossFnOutputType- The data type of the loss function output tensors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lossFnOutputs
ForwardBackwardResult.Builder lossFnOutputs(Collection<? extends Map<String, TensorData>> lossFnOutputs) The loss function output tensors, keyed by name.
- Parameters:
lossFnOutputs- The loss function output tensors, keyed by name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lossFnOutputs
The loss function output tensors, keyed by name.
- Parameters:
lossFnOutputs- The loss function output tensors, keyed by name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
The training metrics emitted by the engine, such as loss values.
- Parameters:
metrics- The training metrics emitted by the engine, such as loss values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUsage
The token usage statistics for metering.
- Parameters:
tokenUsage- The token usage statistics for metering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenUsage
The token usage statistics for metering.
This is a convenience method that creates an instance of theTrainingTokenUsage.Builderavoiding the need to create one manually viaTrainingTokenUsage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokenUsage(TrainingTokenUsage).- Parameters:
tokenUsage- a consumer that will call methods onTrainingTokenUsage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-