Contents

executeForward(batchSize:options:outputsData:completionHandler:)

Executes the forward pass of the training graph with the batch size, execution options, output data, and completion handler you specify.

Declaration

func executeForward(batchSize: Int, options: MLCExecutionOptions = [], outputsData: [String : MLCTensorData]?, completionHandler: MLCGraphCompletionHandler? = nil) -> Bool

Parameters

  • batchSize:

    The batch size.

  • options:

    The execution options.

  • outputsData:

    A dictionary that contains output data.

  • completionHandler:

    The completion handler.

Return Value

true if the execution was successful.

See Also

Executing Forward, Gradient, and Optimizer Updates