Interface OperationResult.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<OperationResult.Builder,,OperationResult> SdkBuilder<OperationResult.Builder,,OperationResult> SdkPojo
- Enclosing class:
OperationResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault OperationResult.Builderforward(Consumer<ForwardResult.Builder> forward) The result from a forward-only pass.forward(ForwardResult forward) The result from a forward-only pass.default OperationResult.BuilderforwardBackward(Consumer<ForwardBackwardResult.Builder> forwardBackward) The result from a forward and backward pass.forwardBackward(ForwardBackwardResult forwardBackward) The result from a forward and backward pass.default OperationResult.BuilderloadState(Consumer<LoadStateResult.Builder> loadState) The result from loading training state.loadState(LoadStateResult loadState) The result from loading training state.default OperationResult.BuilderoptimizerStep(Consumer<OptimizerStepResult.Builder> optimizerStep) The result from an optimizer step.optimizerStep(OptimizerStepResult optimizerStep) The result from an optimizer step.default OperationResult.BuildersaveState(Consumer<SaveStateResult.Builder> saveState) The result from saving full training state.saveState(SaveStateResult saveState) The result from saving full training state.default OperationResult.BuildersaveWeights(Consumer<SaveWeightsResult.Builder> saveWeights) The result from saving model weights.saveWeights(SaveWeightsResult saveWeights) The result from saving model weights.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
-
forward
The result from a forward-only pass.
- Parameters:
forward- The result from a forward-only pass.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forward
The result from a forward-only pass.
This is a convenience method that creates an instance of theForwardResult.Builderavoiding the need to create one manually viaForwardResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toforward(ForwardResult).- Parameters:
forward- a consumer that will call methods onForwardResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
forwardBackward
The result from a forward and backward pass.
- Parameters:
forwardBackward- The result from a forward and backward pass.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forwardBackward
default OperationResult.Builder forwardBackward(Consumer<ForwardBackwardResult.Builder> forwardBackward) The result from a forward and backward pass.
This is a convenience method that creates an instance of theForwardBackwardResult.Builderavoiding the need to create one manually viaForwardBackwardResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toforwardBackward(ForwardBackwardResult).- Parameters:
forwardBackward- a consumer that will call methods onForwardBackwardResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
optimizerStep
The result from an optimizer step.
- Parameters:
optimizerStep- The result from an optimizer step.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optimizerStep
The result from an optimizer step.
This is a convenience method that creates an instance of theOptimizerStepResult.Builderavoiding the need to create one manually viaOptimizerStepResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooptimizerStep(OptimizerStepResult).- Parameters:
optimizerStep- a consumer that will call methods onOptimizerStepResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
saveWeights
The result from saving model weights.
- Parameters:
saveWeights- The result from saving model weights.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
saveWeights
The result from saving model weights.
This is a convenience method that creates an instance of theSaveWeightsResult.Builderavoiding the need to create one manually viaSaveWeightsResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosaveWeights(SaveWeightsResult).- Parameters:
saveWeights- a consumer that will call methods onSaveWeightsResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
saveState
The result from saving full training state.
- Parameters:
saveState- The result from saving full training state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
saveState
The result from saving full training state.
This is a convenience method that creates an instance of theSaveStateResult.Builderavoiding the need to create one manually viaSaveStateResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosaveState(SaveStateResult).- Parameters:
saveState- a consumer that will call methods onSaveStateResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
loadState
The result from loading training state.
- Parameters:
loadState- The result from loading training state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadState
The result from loading training state.
This is a convenience method that creates an instance of theLoadStateResult.Builderavoiding the need to create one manually viaLoadStateResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toloadState(LoadStateResult).- Parameters:
loadState- a consumer that will call methods onLoadStateResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-