-
Notifications
You must be signed in to change notification settings - Fork 119
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
TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("lstm_1_input:0", shape=(?, ?, 4), dtype=float32) is not an element of this graph. #1
Comments
had a similar problem the other day - try googling or setup an old version of tensorflow 1? and try that with miniconda. |
Tried Tensorflow 1.0.0 (error & pip-freeze), will try per your AdversarialChess comments tomorrow. Thanks! |
@johnpope I'm having trouble connecting the fix from your prior issue (AdversarialChess) to this situation conceptually, don't know what I'd change here. Maybe a keras/tf version change could be a quick fix, which versions are you using (per pip freeze?) Also question for @jaungiers |
Looks like an issue with threading - maybe args aren't being passed properly, or a race condition or something. When I remove the threading line and call # t = threading.Thread(target=fit_model_threaded, args=[model, data_gen_train, steps_per_epoch, configs])
# t.start()
fit_model_threaded(model, data_gen_train, steps_per_epoch, configs) If I get threading back in business I'll submit a PR |
@lefnire were you ever able to get the threading issue resolved? i am running into a similar issue where i get the |
alas, no. I haven't messed with this repo in a while, sorry! |
@lefnire i am running all my model training on one thread but can't seem to use that model to predict on my main io loop thread. let me know if you find a solution! |
not sure this helps - but found some threading code for another python project. seems like there's a central queue to orchestrate things. |
I happened to have found a solution to that, from avital's answer in keras-team/keras#2397.
Root cause:
|
Same happened |
As far as my knowledge there are still a few bugs with keras , mainly in the load_model() funtion. Today i was succesfully able to solve 5-10 problems by restarting , maybe u should try |
I was facing the same problem with flask , and tensorflow ,but i was able to solve it |
and also install |
finally completely solved it .
|
""" from keras import backend as K #After prediction |
thanks, this solved the issue. |
finally solved 👍
|
Fresh clone, data/bitcoin.csv unzipped, Keras(2.0.6) TensorFlow(1.2.1) Python(3.6.2) (full pip freeze).
[Edit] Also tried on Python 2.7, same error. (full pip freeze)
Full error:
I realize you're likely not keen on supporting a blog-post's code-demo, but just in case someone has top-of-the-dome.
The text was updated successfully, but these errors were encountered: