Initializer

init(for:)

Creates a model container to be used with VNCoreMLRequest.

Declaration

convenience init(for model: MLModel) throws

Discussion

This method may fail if Vision does not support the created CoreML model. For example, a model that does not accept an image as any of its inputs will yield an VNErrorCode.invalidModel error.