Contents

forwardForInference

The option to execute the forward pass for inference only.

Declaration

static var forwardForInference: MLCExecutionOptions { get }

Discussion

If you include this option and execute a training graph using one of the execute methods, such as execute(inputsData:lossLabelsData:lossLabelWeightsData:batchSize:options:completionHandler:), the framework only executes the forward pass of the training graph, and it executes that forward pass for inference only.

If you include this option and execute a training graph using one of the executeForward methods, such as executeForward(batchSize:options:completionHandler:), the framework executes the forward pass for inference only.

See Also

Execution Options