executeOptimizerUpdate(options:completionHandler:)
Executes the optimizer update pass of the training graph with the execution options and completion handler you specify.
Declaration
func executeOptimizerUpdate(options: MLCExecutionOptions = [], completionHandler: MLCGraphCompletionHandler? = nil) -> BoolParameters
- options:
The execution options.
- completionHandler:
The completion handler.
Return Value
true if the execution was successful.
See Also
Executing Forward, Gradient, and Optimizer Updates
executeForward(batchSize:options:completionHandler:)executeForward(batchSize:options:outputsData:completionHandler:)executeForward(batchSize:options:outputsData:)executeGradient(batchSize:options:completionHandler:)executeGradient(batchSize:options:outputsData:completionHandler:)executeGradient(batchSize:options:outputsData:)executeOptimizerUpdate(options:)synchronizeUpdates()setTrainingTensorParameters(_:)MLCExecutionOptionsMLCGraphCompletionHandler