Skip to content

Commit d442cd8

Browse files
Johannes Ballécopybara-github
authored andcommitted
Pins tf-nightly version in installation instructions (issue #74).
PiperOrigin-RevId: 364345768 Change-Id: I2dbde578913918bbea46185e2c129e7d1cbcc3de
1 parent 956a376 commit d442cd8

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ of TF.***
5858
To install TFC via `pip`, run the following command:
5959

6060
```bash
61-
pip install tensorflow-compression
61+
pip uninstall -y tensorflow
62+
pip install tf-nightly==2.5.0.dev20210312 tensorflow-compression
6263
```
6364

6465
To test that the installation works correctly, you can run the unit tests with:
@@ -80,7 +81,7 @@ host. For instance, you can use a command line like this:
8081

8182
```bash
8283
docker run tensorflow/tensorflow:nightly bash -c \
83-
"pip install tensorflow-compression &&
84+
"pip install tf-nightly==2.5.0.dev20210312 tensorflow-compression &&
8485
python -m tensorflow_compression.all_tests"
8586
```
8687

@@ -98,7 +99,7 @@ libraries, and then installs TensorFlow and TensorFlow Compression:
9899
```bash
99100
conda create --name ENV_NAME python=3.8 cudatoolkit=10.0 cudnn
100101
conda activate ENV_NAME
101-
pip install tensorflow-compression
102+
pip install tf-nightly==2.5.0.dev20210312 tensorflow-compression
102103
```
103104

104105
## Usage

models/hific/colab.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
},
3232
"outputs": [],
3333
"source": [
34-
"!pip install tensorflow-compression\n",
34+
"!pip uninstall -y tensorflow\n",
35+
"!pip install tf-nightly==2.5.0.dev20210312 tensorflow-compression==2.1\n",
3536
"![[ -e /tfc ]] || git clone https://github.com/tensorflow/compression /tfc\n",
3637
"%cd /tfc/models\n",
3738
"import tfci # Check if tfci.py is available."

models/toy_sources/toy_sources.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"# Run this cell to install the necessary dependencies when running the notebook\n",
3838
"# directly in a Colaboratory hosted runtime from Github.\n",
3939
"\n",
40-
"%tensorflow_version 2.x\n",
41-
"!pip install tensorflow-compression==2.*\n",
40+
"!pip uninstall -y tensorflow\n",
41+
"!pip install tf-nightly==2.5.0.dev20210312 tensorflow-compression==2.1\n",
4242
"![[ -e /tfc ]] || git clone https://github.com/tensorflow/compression /tfc\n",
4343
"%cd /tfc/models\n"
4444
],

0 commit comments

Comments
 (0)