General compression library for tensorflow models.
The easiest way to install is using pip.
# sudo apt-get install bazel git python-pip
git clone https://github.com/kkiningh/tf_compress.git
cd tf_compress
pip install --user .
You can also build a python package from source. This requires Bazel.
# sudo apt-get install bazel git python-pip
git clone https://github.com/kkiningh/tf_compress.git
cd tf_compress
bazel build --copt=-O3 --copt=-march=native :pip_pkg
PKGDIR=$(mktemp -d)
./bazel-bin/pip_pkg $PKGDIR
pip install --user --upgrade $PKGDIR/*.whl
Access the library using
import tensorflow_compress as tfc
This library was inspired by tf.contrib.model_pruning.