Skip to content

Commit 97aa7da

Browse files
alanchiaotensorflower-gardener
authored andcommitted
0.1.3 release preparation.
PiperOrigin-RevId: 265144137
1 parent f07adcc commit 97aa7da

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ pip install --user --upgrade tensorflow-model-optimization
2525
For release details, see our
2626
[release notes](https://github.com/tensorflow/model-optimization/releases).
2727

28-
TensorFlow Model Optimization currently depends on the nightly build of
29-
[TensorFlow](https://www.tensorflow.org/install) (pip package `tf-nightly`) and
30-
only supports Tensorflow 1.XX.
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.
3132

3233
Since TensorFlow is *not* included as a dependency of the TensorFlow Model
3334
Optimization package (in `setup.py`), you must explicitly install the TensorFlow

tensorflow_model_optimization/g3doc/_project.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: TensorFlow model optimization
2-
breadcrumb_name: Model optimization v0.1.2
2+
breadcrumb_name: Model optimization v0.1.3
33
home_url: /model_optimization/
44
parent_project_metadata_path: /_project.yaml
55
description: >

tensorflow_model_optimization/g3doc/guide/pruning/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ speech recognition and text-to-speech, and has been experimented on across
2323
various vision and translation models.
2424

2525
Users can apply this technique using APIs for Keras on Tensorflow 1.x for
26-
versions 1.14+ and nightly in both graph and eager execution.
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.
2728

2829
Note: The pruning API is only compatible with `tf.distribute` when using graph
29-
execution. It is on our roadmap to bring full support to TF 2.x and eager
3030
execution.
3131

32+
It is on our roadmap to bring full support to TF 2.x and eager execution.
33+
3234
## Results
3335

3436
### Image Classification

tensorflow_model_optimization/g3doc/guide/pruning/pruning_with_keras.ipynb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@
120120
"id": "q8zIQsT9mUTw"
121121
},
122122
"source": [
123-
"To use the pruning API, you need to install the `tensorflow-model-optimization` and `tf-nightly` packages.\n",
123+
"To use the pruning API, you need to install the
124+
`tensorflow-model-optimization` package. See
125+
https://github.com/tensorflow/model-optimization for what versions of
126+
TensorFlow the API is compatible with.\n",
124127
"\n",
125128
"Since you will train a few models in this tutorial, install the `tensorflow-gpu` package to speed up things. Enable the GPU with: *Runtime \u003e Change runtime type \u003e Hardware accelator* and make sure GPU is selected."
126129
]
@@ -137,7 +140,7 @@
137140
"source": [
138141
"! pip uninstall -y tensorflow\n",
139142
"! pip uninstall -y tf-nightly\n",
140-
"! pip install -U tf-nightly-gpu\n",
143+
"! pip install -U tensorflow-gpu==1.14.0\n",
141144
"\n",
142145
"! pip install tensorflow-model-optimization"
143146
]

tensorflow_model_optimization/python/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# We follow Semantic Versioning (https://semver.org/)
1818
_MAJOR_VERSION = '0'
1919
_MINOR_VERSION = '1'
20-
_PATCH_VERSION = '2'
20+
_PATCH_VERSION = '3'
2121

2222
# When building releases, we can update this value on the release branch to
2323
# reflect the current release candidate ('rc0', 'rc1') or, finally, the official

0 commit comments

Comments
 (0)