File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
tensorflow_compression/python Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 31
31
},
32
32
"outputs" : [],
33
33
"source" : [
34
- " !pip install tensorflow-compression\n " ,
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 " ,
36
+ " \n " ,
37
+ " # Downloads the 'models' directory from Github.\n " ,
35
38
" ![[ -e /tfc ]] || git clone https://github.com/tensorflow/compression /tfc\n " ,
36
39
" %cd /tfc/models\n " ,
37
- " import tfci # Check if tfci.py is available."
40
+ " \n " ,
41
+ " # Checks if tfci.py is available.\n " ,
42
+ " import tfci\n "
38
43
]
39
44
},
40
45
{
Original file line number Diff line number Diff line change 37
37
" # Run this cell to install the necessary dependencies when running the notebook\n " ,
38
38
" # directly in a Colaboratory hosted runtime from Github.\n " ,
39
39
" \n " ,
40
- " !pip install tensorflow-compression\n " ,
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 " ,
42
+ " \n " ,
43
+ " # Downloads the 'models' directory from Github.\n " ,
41
44
" ![[ -e /tfc ]] || git clone https://github.com/tensorflow/compression /tfc\n " ,
42
45
" %cd /tfc/models\n "
43
46
],
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
# ==============================================================================
15
- """Data loaders based on `tf.data.Dataset`."""
15
+ """Data loaders, based on `tf.data.Dataset`."""
16
16
17
17
from tensorflow_compression .python .datasets .y4m_dataset import *
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
# ==============================================================================
15
- """Ops."""
15
+ """Operations."""
16
+
16
17
from tensorflow_compression .python .ops .gen_ops import *
17
18
from tensorflow_compression .python .ops .math_ops import *
18
19
from tensorflow_compression .python .ops .padding_ops import *
You can’t perform that action at this time.
0 commit comments