lodash 中文文档 lodash 中文文档
英文官网 (opens new window)
GitHub (opens new window)
英文官网 (opens new window)
GitHub (opens new window)
  • 简介
  • 数组
  • 集合
  • 函数
  • 语言
  • 数学
  • 数字
  • 对象
  • Seq
  • 字符串
  • 实用函数
  • Properties

Core ML Tools


Core ML Tools logo

Use coremltoolsto convert machine learning models from third-party libraries to the Core ML format. This Python package contains the supporting tools for converting models from training libraries such as the following:

TensorFlow 1.x
TensorFlow 2.x
PyTorch
Non-neural network frameworks:
scikit-learn
XGBoost
LibSVM

With coremltools, you can do the following:

Convert trained models to the Core ML format.
Read, write, and optimize Core ML models.
Verify conversion/creation (on macOS) by making predictions using Core ML.

After conversion, you can integrate the Core ML models with your app using Xcode.

Version 7


The coremltools version 7 beta 1 is now out. To install, run the following command in your terminal:

  1. ``` shell
  2. pip install coremltools==7.0b1
  3. ```

Version 6


The coremltools 6 package offers new features to optimize the model conversion process. For details, see New in coremltools.

For a full list of changes, see Release Notes.

To install coremltools 6.0 use the following command:

  1. ``` shell
  2. pip install coremltools
  3. ```

Version 5


The coremltools 5 package offers several performance improvements over previous versions, including new features. For details, see New in coremltools.

Core ML


Core ML is an Apple framework to integrate machine learning models into your app. Core ML provides a unified representation for all models. Your app uses Core ML APIs and user data to make predictions, and to fine-tune models, all on the user’s device. Core ML optimizes on-device performance by leveraging the CPU, GPU, and Neural Engine while minimizing its memory footprint and power consumption. Running a model strictly on the user’s device removes any need for a network connection, which helps keep the user’s data private and your app responsive.

Resources


To install coremltools, see the “Installation“ page. For more information, see the following:

Release Notes
Guides and examples
API Reference
Core ML Specification
Building from Source
Contribution Guidelines
Last Updated: 2023-07-19 07:55:27