File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,21 @@ similar in the last line.
8585
8686### Colab
8787
88- To try out TFC live in a [ Colab] ( https://colab.research.google.com/ ) , run the
89- following command in a cell before executing your Python code:
88+ You can try out TFC live in a [ Colab] ( https://colab.research.google.com/ ) . The
89+ following command installs the latest version of TFC that is compatible with the
90+ installed TensorFlow version. Run it in a cell before executing your Python
91+ code:
9092
9193```
92- !pip install tensorflow-compression
94+ !pip install tensorflow-compression~=$(pip show tensorflow | perl -p -0777 -e 's/.*Version: (\\d\\.\\d).*/\\1.0/sg')
9395```
9496
97+ Note: The binary packages of TFC are tied to TF with the same minor version
98+ (e.g., TFC 2.9.1 requires TF 2.9.x), and Colab sometimes lags behind a few days
99+ in deploying the latest version of TensorFlow. As a result, using `pip install
100+ tensorflow-compression` naively might attempt to upgrade TF, which can create
101+ problems.
102+
95103### Docker
96104
97105To use a Docker container (e.g. on Windows), be sure to install Docker
You can’t perform that action at this time.
0 commit comments