executeOptimizerUpdate(options:)
Executes the optimizer update pass of the training graph with the execution options you specify.
Declaration
@discardableResult func executeOptimizerUpdate(options: MLCExecutionOptions = []) async throws -> TimeIntervalParameters
- options:
The execution options.
Return Value
The execution time if you specify profiling.
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:completionHandler:)synchronizeUpdates()setTrainingTensorParameters(_:)MLCExecutionOptionsMLCGraphCompletionHandler