Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save balajismaniam/a1919010fe9081ca37a6e1e7b01f02e3 to your computer and use it in GitHub Desktop.
Save balajismaniam/a1919010fe9081ca37a6e1e7b01f02e3 to your computer and use it in GitHub Desktop.
FROM python:3.6.4-slim-stretch
RUN apt-get update && apt-get install -y build-essential git time
RUN pip install https://anaconda.org/intel/tensorflow/1.6.0/download/tensorflow-1.6.0-cp36-cp36m-linux_x86_64.whl
RUN git clone https://github.com/tensorflow/models.git
ENV PYTHONPATH $PYTHONPATH:$HOME/models
WORKDIR $HOME/models/official/resnet/
RUN pip3 install -r ../requirements.txt
RUN python ./cifar10_download_and_extract.py
ENTRYPOINT python ./cifar10_main.py
@vladwa
Copy link

vladwa commented Jun 4, 2019

Error while building docker image.

Step 8/9 : RUN python ./cifar10_download_and_extract.py
---> Running in fbe9bb9b3685
Traceback (most recent call last):
File "./cifar10_download_and_extract.py", line 63, in
tf.compat.v1.app.run(argv=[sys.argv[0]] + unparsed)
AttributeError: module 'tensorflow.python.util.compat' has no attribute 'v1'
The command '/bin/sh -c python ./cifar10_download_and_extract.py' returned a non-zero code: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment