@@ -12,45 +12,9 @@ The website also provides various tutorials and API docs.
12
12
The toolkit provides stable Python APIs.
13
13
14
14
## Installation
15
+ For installation instructions, see
16
+ [ tensorflow.org/model_optimization/guide/install] ( https://www.tensorflow.org/model_optimization/guide/install ) .
15
17
16
- ### Stable Builds
17
-
18
- To install the latest version, run the following:
19
-
20
- ``` shell
21
- # Installing with the `--upgrade` flag ensures you'll get the latest version.
22
- pip install --user --upgrade tensorflow-model-optimization
23
- ```
24
-
25
- For release details, see our
26
- [ release notes] ( https://github.com/tensorflow/model-optimization/releases ) .
27
-
28
- For the required version of TensorFlow and other compatibility information, see
29
- the API Compatibility Matrix section of the Overview page for the technique you
30
- intend to use. For instance, for pruning, the Overview page is
31
- [ here] ( https://www.tensorflow.org/model_optimization/guide/pruning ) .
32
-
33
- Since TensorFlow is * not* included as a dependency of the TensorFlow Model
34
- Optimization package (in ` setup.py ` ), you must explicitly install the TensorFlow
35
- package (` tf-nightly ` or ` tf-nightly-gpu ` ). This allows us to maintain one
36
- package instead of separate packages for CPU and GPU-enabled TensorFlow.
37
-
38
- ### Installing from Source
39
-
40
- You can also install from source. This requires the
41
- [ Bazel] ( https://bazel.build/ ) build system.
42
-
43
- ``` shell
44
- # To install dependencies on Ubuntu:
45
- # sudo apt-get install bazel git python-pip
46
- # For other platforms, see Bazel docs above.
47
- git clone https://github.com/tensorflow/model-optimization.git
48
- cd model_optimization
49
- bazel build --copt=-O3 --copt=-march=native :pip_pkg
50
- PKGDIR=$( mktemp -d)
51
- ./bazel-bin/pip_pkg $PKGDIR
52
- pip install --user --upgrade $PKGDIR /* .whl
53
- ```
54
18
## Contribution guidelines
55
19
56
20
** If you want to contribute to TensorFlow Model Optimization, be sure to review
0 commit comments