Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@vladwa 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