Converting from TensorFlow

Starting with Core ML Tools 4.0, you can convert neural network models from TensorFlow 1 and TensorFlow 2 to Core ML using the Unified Converter API.


Minimum Deployment Target

The Unified Converter API produces Core ML models for iOS 13, macOS 10.15, watchOS 6, tvOS 13 or newer deployment targets.

If your primary deployment target is iOS 12 or earlier, you can find limited conversion support for TensorFlow 1 models in the tfcoreml package.

To convert from TensorFlow 1.x to Core ML, use one of the following formats for the source model:

  • Frozen tf.Graph
  • Frozen graph (.pb) file path

For instructions, see the following: