Skip to content

Commit fce05bc

Browse files
Johannes Ballécopybara-github
authored andcommitted
Fixes minor problems with paths and TFC versions in Colab notebooks.
PiperOrigin-RevId: 350447811 Change-Id: I5dd840e40f3b726d4f120fcb229e7fe0596c87b0
1 parent e9c0139 commit fce05bc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

models/hific/colab.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
},
4646
"source": [
4747
"%tensorflow_version 1.x\n",
48-
"!pip install tensorflow-compression\n",
49-
"![[ -e tfc ]] || git clone https://github.com/tensorflow/compression tfc\n",
50-
"%cd tfc/models\n",
48+
"!pip install tensorflow-compression\\<2.0\n",
49+
"![[ -e /tfc ]] || git clone https://github.com/tensorflow/compression /tfc\n",
50+
"%cd /tfc/models\n",
5151
"import tfci # Check if tfci.py is available.\n"
5252
],
5353
"execution_count": null,
@@ -362,4 +362,4 @@
362362
"outputs": []
363363
}
364364
]
365-
}
365+
}

models/toy_sources/toy_sources.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
"# directly in a Colaboratory hosted runtime from Github.\n",
3939
"\n",
4040
"%tensorflow_version 2.x\n",
41-
"!pip install tensorflow-compression>=2.0\n",
42-
"![[ -e tfc ]] || git clone https://github.com/tensorflow/compression tfc\n",
43-
"%cd tfc/models\n"
41+
"!pip install tensorflow-compression\\>=2.0b0\n",
42+
"![[ -e /tfc ]] || git clone https://github.com/tensorflow/compression /tfc\n",
43+
"%cd /tfc/models\n"
4444
],
4545
"execution_count": null,
4646
"outputs": []

0 commit comments

Comments
 (0)