Does an MLModel need to be adapted in any way to support predicting into buffers given with MLPredictionOptions.outputBackings?

MLModel does not need to be adapted in any way to accept output backings. MLPredictionOptions.outputBackings can be used to provide either a CVPixelBuffer or MLMultiArray depending on the output feature value type. When a CVPixelBuffer is provided as output backing for prediction, please ensure that the base address is not locked for read / write. Please check out Optimize your Core ML usage session tomorrow.

Tagged with: