Examples — Guide to Core ML Tools (original) (raw)

Contents

Examples#

The following are code example snippets and full examples of using Core ML Tools to convert models.

For a Quick Start#

Full example:

ML Program with Typed Execution#

Full example:

TensorFlow 2#

Full examples:

TensorFlow 1#

Full examples:

PyTorch#

Full examples:

Model Intermediate Language (MIL)#

Full example:

Conversion Options#

Image Inputs#

Classifiers#

Flexible Input Shapes#

Composite and Custom Operators#

Full example:

Optimization#

Full examples:

Trees and Linear Models#

MLModel#

MLModel Overview#

Model Prediction#

Full example:

Xcode Model Preview Types#

Full examples:

MLModel Utilities#

Updatable Models#

Full examples: