Search code examples
iosmachine-learningcoremlcoremltools

How to use `Linked Model` feature of Core ML 3?


As WWDC suggested, a linked model feature is supported in Core ML 3., which allows developers re-use the same mlmodelc to save space.

There are also two parameters named linkedModelFileName and linkedModelSearchPath in the documentation.

But I didn't see any tutorials or examples about how to use it, except the proto of Linked Model is defined in the documentation of coremltools.

So I'm just wondering if there is anybody knowing the exact way to use it?


Solution

  • This example shows how to use a linked model and make it updatable (just ignore the updatable bit for your use case):

    https://github.com/apple/coremltools/blob/master/examples/updatable_models/updatable_linked_model.ipynb