applied(to:eventHandler:)
Performs a prediction on a shaped array.
Declaration
func applied(to input: MLShapedArray<Scalar>, eventHandler: EventHandler? = nil) async throws -> MLShapedArray<Scalar>Parameters
- input:
A shaped array of features. The last dimension must be
inputSize. - eventHandler:
An event handler.
Return Value
A shaped array of predictions. The shape of the predictions matches the shape of the input except for the last dimension, which is outputSize.