Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FixBug:Tensor is not an element of this graph. #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

diaoxinqiang
Copy link

When used server.py to predict,I met and fixed this bug:ValueError: Tensor Tensor("dense_2/Softmax:0", shape=(?, 62), dtype=float32) is not an element of this graph.

@ryanjcooper
Copy link
Owner

Hi @diaoxinqiang, thanks for finding this. As Keras and Tensorflow have been being updated, some of the legacy API became incompatible. Can you tell me what version of Keras/Tensorflow that this patch was made with so I can test before I merge.
-- Ryan

@ryanjcooper ryanjcooper self-assigned this Oct 17, 2018
@ryanjcooper
Copy link
Owner

This seems to be the same issue referenced here #5 (comment)

The project was written under Keras version 2.0.4 and Tensorflow version 1.1.0.
The code will run given the dependencies listed in dependencies.txt.

I am open to updating this to be compatible with newer versions of Keras/Tensorflow.

@diaoxinqiang
Copy link
Author

here are my dependencies

absl-py==0.4.1
astor==0.7.1
beautifulsoup4==4.6.3
bokeh==0.13.0
certifi==2016.2.28
chardet==3.0.4
click==6.7
cloudpickle==0.5.3
cycler==0.10.0
cytoolz==0.9.0.1
dask==0.18.0
decorator==4.3.0
distributed==1.22.0
Flask==1.0.2
gast==0.2.0
grpcio==1.12.1
h5py==2.8.0
heapdict==1.0.0
idna==2.7
imageio==2.3.0
imutils==0.4.6
itsdangerous==0.24
Jinja2==2.10
Keras==2.2.4
Keras-Applications==1.0.6
Keras-Preprocessing==1.0.5
kiwisolver==1.0.1
locket==0.2.0
lxml==3.8.0
Markdown==2.6.11
MarkupSafe==1.0
matplotlib==2.2.3
mkl-fft==1.0.0
mkl-random==1.0.1
msgpack-python==0.5.6
networkx==2.1
numpy==1.14.5
olefile==0.45.1
opencv-python==3.4.3.18
packaging==17.1
pandas==0.23.1
partd==0.3.8
Pillow==5.2.0
protobuf==3.6.0
psutil==5.4.6
pyparsing==2.2.0
python-dateutil==2.7.3
pytz==2018.4
PyWavelets==0.5.2
PyYAML==3.12
qiniu==7.2.2
requests==2.19.1
scikit-image==0.13.1
scipy==1.1.0
six==1.11.0
sortedcontainers==2.0.4
tblib==1.3.2
tensorboard==1.10.0
tensorflow==1.10.0
termcolor==1.1.0
toolz==0.9.0
tornado==5.0.2
urllib3==1.23
Werkzeug==0.14.1
zict==0.1.3

Tensorflow and Keras:

tensorflow==1.10.0
Keras==2.2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants