Giter Site home page Giter Site logo

tiandiao123 / model-optimization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tensorflow/model-optimization

0.0 1.0 0.0 235 KB

A suite of tools that users, both novice and advanced, can use to optimize machine learning models for deployment and execution.

Home Page: https://www.tensorflow.org/model_optimization

License: Apache License 2.0

Python 92.72% Shell 0.30% Jupyter Notebook 6.98%

model-optimization's Introduction

TensorFlow Model Optimization Toolkit

The TensorFlow Model Optimization Toolkit is a suite of tools that users, both novice and advanced, can use to optimize machine learning models for deployment and execution.

For an overview of this project and individual tools, the optimization gains, and our roadmap refer to tensorflow.org/model_optimization. The website also provides various tutorials and API docs.

The toolkit provides stable Python APIs.

Installation

Stable Builds

To install the latest version, run the following:

# Installing with the `--upgrade` flag ensures you'll get the latest version.
pip install --user --upgrade tensorflow-model-optimization

For release details, see our release notes.

TensorFlow Model Optimization currently depends on the nightly build of TensorFlow (pip package tf-nightly) and only supports Tensorflow 1.XX.

Since TensorFlow is not included as a dependency of the TensorFlow Model Optimization package (in setup.py), you must explicitly install the TensorFlow package (tf-nightly or tf-nightly-gpu). This allows us to maintain one package instead of separate packages for CPU and GPU-enabled TensorFlow.

Installing from Source

You can also install from source. This requires the Bazel build system.

# To install dependencies on Ubuntu:
# sudo apt-get install bazel git python-pip
# For other platforms, see Bazel docs above.
git clone https://github.com/tensorflow/model-optimization.git
cd tensorflow_model_optimization
bazel build --copt=-O3 --copt=-march=native :pip_pkg
PKGDIR=$(mktemp -d)
./bazel-bin/pip_pkg $PKGDIR
pip install --user --upgrade $PKGDIR/*.whl

Community

As part of TensorFlow, we're committed to fostering an open and welcoming environment.

  • GitHub: Report bugs or make feature requests.
  • TensorFlow Blog: Stay up to date on content from the TensorFlow team and best articles from the community.

model-optimization's People

Contributors

alanchiao avatar lamberta avatar liyunlu0618 avatar nutsiepully avatar prachetit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.