File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ installed TensorFlow version. Run it in a cell before executing your Python
95
95
code:
96
96
97
97
```
98
- !pip install tensorflow-compression~=$(pip show tensorflow | perl -p -0777 -e 's/.*Version: (\\d\\.\\d).*/\\1.0/sg')
98
+ !pip install tensorflow-compression~=$(pip show tensorflow | perl -p -0777 -e 's/.*Version: (\\d+ \\.\\d+ ).*/\\1.0/sg')
99
99
```
100
100
101
101
Note: The binary packages of TFC are tied to TF with the same minor version
Original file line number Diff line number Diff line change 32
32
"outputs" : [],
33
33
"source" : [
34
34
" # Installs the latest version of TFC compatible with the installed TF version.\n " ,
35
- " !pip install tensorflow-compression~=$(pip show tensorflow | perl -p -0777 -e 's/.*Version: (\\ d\\ .\\ d).*/\\ 1.0/sg')\n " ,
35
+ " !pip install tensorflow-compression~=$(pip show tensorflow | perl -p -0777 -e 's/.*Version: (\\ d+ \\ .\\ d+ ).*/\\ 1.0/sg')\n " ,
36
36
" \n " ,
37
37
" # Downloads the 'models' directory from Github.\n " ,
38
38
" ![[ -e /tfc ]] || git clone https://github.com/tensorflow/compression /tfc\n " ,
Original file line number Diff line number Diff line change 38
38
" # directly in a Colaboratory hosted runtime from Github.\n " ,
39
39
" \n " ,
40
40
" # Installs the latest version of TFC compatible with the installed TF version.\n " ,
41
- " !pip install tensorflow-compression~=$(pip show tensorflow | perl -p -0777 -e 's/.*Version: (\\ d\\ .\\ d).*/\\ 1.0/sg')\n " ,
41
+ " !pip install tensorflow-compression~=$(pip show tensorflow | perl -p -0777 -e 's/.*Version: (\\ d+ \\ .\\ d+ ).*/\\ 1.0/sg')\n " ,
42
42
" \n " ,
43
43
" # Downloads the 'models' directory from Github.\n " ,
44
44
" ![[ -e /tfc ]] || git clone https://github.com/tensorflow/compression /tfc\n " ,
You can’t perform that action at this time.
0 commit comments