File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed
tensorflow_model_optimization/g3doc/guide/pruning Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ pip install --user --upgrade tensorflow-model-optimization
25
25
For release details, see our
26
26
[ release notes] ( https://github.com/tensorflow/model-optimization/releases ) .
27
27
28
- TensorFlow Model Optimization requires either Tensorflow 1.x for versions 1.14+
29
- or the nightly build of [ TensorFlow ] ( https://www.tensorflow.org/install ) (pip
30
- package ` tf-nightly ` ). Note that for the nightly build, you need to use
31
- tf.compat.v1 since 2.x is the default now .
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
32
33
33
Since TensorFlow is * not* included as a dependency of the TensorFlow Model
34
34
Optimization package (in ` setup.py ` ), you must explicitly install the TensorFlow
Original file line number Diff line number Diff line change @@ -22,14 +22,17 @@ The technique is being evaluated in various speech applications, such as
22
22
speech recognition and text-to-speech, and has been experimented on across
23
23
various vision and translation models.
24
24
25
- Users can apply this technique using APIs for Keras on Tensorflow 1.x for
26
- versions 1.14+ and tf-nightly in both graph and eager execution. Note that in
27
- tf-nightly, you must use tf.compat.v1 since 2.x is the default now.
25
+ ### API Compatibility Matrix
26
+ Users can apply pruning with the following APIs:
28
27
29
- Note: The pruning API is only compatible with ` tf.distribute ` when using graph
30
- execution.
28
+ * Model building: ` tf.keras ` with only Sequential and Functional models
29
+ * TensorFlow versions: TF 1.x for versions 1.14+
30
+ * TensorFlow execution mode: both graph and eager
31
+ * Distributed training: ` tf.distribute ` with only graph execution
31
32
32
- It is on our roadmap to bring full support to TF 2.x and eager execution.
33
+ It is on our roadmap to add support in the following areas:
34
+ * TF 2.x (moderate testing has been done)
35
+ * [ Minimal Subclassed model support] ( https://github.com/tensorflow/model-optimization/issues/155 )
33
36
34
37
## Results
35
38
You can’t perform that action at this time.
0 commit comments