Contents

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 -> TimeInterval

Parameters

  • options:

    The execution options.

Return Value

The execution time if you specify profiling.

See Also

Executing Forward, Gradient, and Optimizer Updates