Convert a CoreML model to PyTorch

Hello, I have a CoreML model and I want to convert it to a PyTorch model.

Any ideas if this is possible and if so how?

Answered by DTS Engineer in 824887022

Currently we only support the other way round i.e. conversion from PyTorch to CoreML with CoreML tools.

Please send us an enhancement request for this feature using the Feedback Assistant.

Currently we only support the other way round i.e. conversion from PyTorch to CoreML with CoreML tools.

Please send us an enhancement request for this feature using the Feedback Assistant.

Note: it's also possible to do this yourself using a program graph class, an in memory representation of the model.

Once in memory you can walk the graph converting CoreML operations to PyTorch operations (an exercise left to the reader).

Convert a CoreML model to PyTorch
 
 
Q