@@ -194,21 +194,23 @@ This section describes the necessary steps to build your own pip packages of
194
194
tensorflow-compression. This may be necessary to install it on platforms for
195
195
which we don't provide precompiled binaries (currently only Linux and Darwin).
196
196
197
- We use the Docker image ` tensorflow/tensorflow:nightly-custom-op ` for building
198
- pip packages. Note that this is different from ` tensorflow/tensorflow:devel ` .
199
- To be compatible with the TensorFlow pip package, the GCC version must match,
200
- but ` tensorflow/tensorflow:devel ` has a different GCC version installed.
197
+ We use the Docker image ` tensorflow/tensorflow:custom-op-ubuntu16 ` for building
198
+ pip packages for Linux. Note that this is different from
199
+ ` tensorflow/tensorflow:devel ` . To be compatible with the TensorFlow pip package,
200
+ the GCC version must match, but ` tensorflow/tensorflow:devel ` has a different
201
+ GCC version installed.
201
202
202
203
Inside a Docker container from the image, the following steps need to be taken.
203
204
204
- 1 . Install TensorFlow pip package.
205
+ 1 . Install the TensorFlow pip package.
205
206
2 . Clone the ` tensorflow/compression ` repo from GitHub.
206
- 3 . Run ` :build_pip_pkg ` inside the cloned repo:
207
+ 3 . Run ` :build_pip_pkg ` inside the cloned repo.
207
208
209
+ For example:
208
210
``` bash
209
211
sudo docker run -v /tmp/tensorflow_compression:/tmp/tensorflow_compression \
210
- tensorflow/tensorflow:nightly- custom-op bash -c \
211
- " pip install tensorflow &&
212
+ tensorflow/tensorflow:custom-op-ubuntu16 bash -c \
213
+ " pip install tensorflow==1.15 &&
212
214
git clone https://github.com/tensorflow/compression.git
213
215
/tensorflow_compression &&
214
216
cd /tensorflow_compression &&
@@ -238,6 +240,9 @@ When done, you can uninstall the pip package again:
238
240
pip uninstall tensorflow-compression
239
241
```
240
242
243
+ To build packages for Darwin (and potentially other platforms), you can follow
244
+ the same steps, but the Docker image should not be necessary.
245
+
241
246
## Authors
242
247
243
248
Johannes Ballé (github: [ jonycgn] ( https://github.com/jonycgn ) ), Sung Jin Hwang
0 commit comments