I have to transfer my trained model to iOS app, so I used coremltools to do it.
the loading model part and converting part are as following.
with open(file