executeForward(batchSize:options:completionHandler:)
Executes the forward pass of the training graph with the batch size, execution options, and completion handler you specify.
Declaration
func executeForward(batchSize: Int, options: MLCExecutionOptions = [], completionHandler: MLCGraphCompletionHandler? = nil) -> BoolParameters
- batchSize:
The batch size.
- 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:outputsData:completionHandler:)executeForward(batchSize:options:outputsData:)executeGradient(batchSize:options:completionHandler:)executeGradient(batchSize:options:outputsData:completionHandler:)executeGradient(batchSize:options:outputsData:)executeOptimizerUpdate(options:completionHandler:)executeOptimizerUpdate(options:)synchronizeUpdates()setTrainingTensorParameters(_:)MLCExecutionOptionsMLCGraphCompletionHandler