Run CoreML model crash on VisionPro real device when review by AppStoreConnect

I run a MiDaS CoreML model on the Device. It run well on VisionPro Simulator and iOS RealDevice. But crash on VisionPro device.

crash mssage: /Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Utility/MPSLibrary.mm:550: failed assertion `MPSKernel MTLComputePipelineStateCache unable to load function ndArrayConvolution2DA14.

I had luck using CoreMLTools to convert to "neuralnetwork" instead of "mlprogram"

model = ct.convert(
    traced_model,
    inputs=[image_input],
    convert_to="neuralnetwork"
)

I'm also seeing this fixed in 1.1 beta 2

Run CoreML model crash on VisionPro real device when review by AppStoreConnect
 
 
Q