-
Notifications
You must be signed in to change notification settings - Fork 4.6k
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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("masking_1_input:0", shape=(?, 3, 24), dtype=float32) is not an element of this graph. #3102
Comments
@npx @benshippee @normanrz @tmbo @eliseboyd guys any help would be appreciated. |
@ray-man you specified that you are using 0.7.0 mind trying the latest release (0.7.4)? Please let me know how that goes and please also note your tensorflow / keras version. |
@tmbo I've tried using latest 0.7.4 no luck with it too, I was on Tensor-flow 1.1.0 which i tried upgrading to 1.4.0 and Keras 2.0.8 to 2.1.0 but no success... |
Using 1.10 locally as well. This sounds a bit like an issue with the tensorflow session. Is that using multiple processes? |
@tmbo No it is not using multiple processes, and i have tried clearing any existing session through |
I tried to reproduce this but I can't. Can you provide a list of the installed python dependencies so I can have a look if something looks off the usual setup? |
Here is a list of all dependencies installed
|
Same issue here. I am up to the |
@ray-man : I'm not sure how related our issues our (mine was for model.load_weights() and not training) but one solution that worked for me was to switch from a TensorFlow backend to a Theano backend (directions here: https://keras.io/backend/). I'm also unsure of whether this is a Django issue or a TensorFlow issue (who's at fault). Hopefully this helps. |
Having the same issue with rasa_core 0.7.9 and tensorflow 1.4.1, without Django being involved. |
@bitraten can you try with the latest rasa_core (0.8.0) - I think the referenced tensorflow is 1.1.0 though |
but should work with 1.4.1 as well |
@tmbo Error still appears for me with rasa_core 0.8.1 and tensorflow 1.1.0 as well as 1.4.1. |
I'd love to help on this one, but I couldn't reproduce this yet. @bitraten which command are you running? |
I'm trying to use Django and Keras (not using RasaHQ) and have exactly the same issue. If I restart django server, the first training goes ok. But when try to retrain even creating a new empty keras model this error appears. Although if I access the same method using manage.py shell it works perfectly. Weird. |
Can you post a minimal non working django app? That would be great and i could use it for debugging. |
I'm having the same issue with Keras and Tensorflow. Although I'm using Flask instead of Django. I expose a training model service: the first request goes smoothly, but if I send another request I get the "Cannot interpret feed_dict key as Tensor" error. EDIT: seems that the problem is related to threading mechanism. If I run the app single-threaded (threaded=False in flask), subsequent requestes work as expected |
hi, I have experienced the same error if we apply following code to release the model session from memory keras.backend.clear_session() and you can load it again to get the model back on the consecutive request. |
same issue |
u can solve the issue by doing the above command |
@PvsManiyan as mentioned above it doesn't help. |
same issue Possible solution? |
I was using flask,
|
Yes so the issue here is, that tensorflow doesn't like it if the graph is created in a different thread and not set properly. I'll take a look at this, but clearing the session might do the trick as well 👍 |
I got the same error when I upgraded my Flask from 0.12.0 to 1.0.2. It's strange. |
same error! |
same error...can someone help out please.. App runs fine for the first time, but second run and it gives this error. Help please |
@asharsid check the input size you are providing in your app script |
I am getting same error
I am using socket and multiple threading and it gives good result to first client connected only for every another client it throws this error |
@bibhu107 .. Hi Bibhu, I forgot to mention that I am using Keras on top of tensorflow...and passing images for CNN, for which I am fixing the input size. However, I was able to fix my problem using your answer as a hint :) #Declare this as global: #Then just before you call in your model, use this Note: In my case too, the app ran fine for the first time and then gave the error above. Using the above fix solved the problem. Hope that helps. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Estaré ausente de la oficina hasta el 19/09/2018.
Responderé a su mensaje cuando regrese.
Nota: Esta es una respuesta automática a su mensaje "[EXT] Re:
[RasaHQ/rasa_core] TypeError: Cannot interpret feed_dict key as Tensor:
Tensor Tensor("masking_1_input:0", shape=(?, 3, 24), dtype=float32) is not
an element of this graph. (#80)" enviado el: 18/09/2018 8:17:46.
Esta es la única notificación que recibirá mientras esta persona está
ausente.
|
It occurred same with me too. May I know the reasons? |
The above issue can be sort out by following the below steps step 1 :- write the logic of the model
it working ... :-) |
Rasa Core version : 0.7.0
Operating system: OSX 10.11.6
Issue:
Using rasa_core as part of Django app while requesting for training to be done with provided data everything goes smooth but if i try to re train without changing anything from data or any any other related file am getting TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("masking_1_input:0", shape=(?, 3, 24), dtype=float32) is not an element of this graph.
Traceback:
P.S : Raising issue in rasa_core after closing in rasa_nlu because it felt more relevant to core.
The text was updated successfully, but these errors were encountered: