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.
85
85
86
86
### Colab
87
87
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:
90
92
91
93
```
92
- !pip install tensorflow-compression
94
+ !pip install tensorflow-compression~=$(pip show tensorflow | perl -p -0777 -e 's/.*Version: (\\d\\.\\d).*/\\1.0/sg')
93
95
```
94
96
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
+
95
103
### Docker
96
104
97
105
To 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