Open hithisisdhara opened 6 years ago
Did you solve this problem? I have the same problem also.
Nope :(
Please tell me what version of keras are you using and with what backend, in order to be able to reproduce the problem. I don't use Keras for my projects anymore and i don't remember facing such problem in the past, but i will look into it.
I use keras==1.2.2 with tensorflow backend. Thanks for your reply.
Unfortunately, i have updated the repo in order to work with keras 2.x. There are some breaking changes from keras 1.X to 2.x. Also, this may be a TF issue. Note though, that the model initially was implemented in keras 1.2.2 with theano backend and i never tested it with TF.
Anyway, tell me also what is your version of TF and i will try to see what causes the problem when i get the time.
Thank you so much for responding to this issue. I have tried TensorFlow versions 1.4 upto 1.7, but the problem persisted. Thank you for letting me know about Keras version, I also used 1.2.x for Keras with TensorFlow backend.
Hi guys, sorry for taking so long to update the repository. I just updated the codebase. It now works with the latest versions of Keras (2.2.0) and Tensorflow (1.8.0). Please pull from the master and upgrade your packages from the requirements.
Please let me know if the updated code resolves your issues.
Hello, I am trying to recreate the results of subtask B, 2 way classification of the tweets, and I have taken the following steps: change the TASK = 'BD' in model_target.py
When I try running model_target.py, I am through until the model being trained, and then I get an error TypeError: Using a
tf.Tensor
as a Pythonbool
is not allowed. Useif t is not None:
instead ofif t:
to test if a tensor is defined, and use TensorFlow ops such as tf.cond to execute subgraphs conditioned on the value of a tensor.I have tried installing an older version of Tensorflow, but still get the same result.
Here is the full error:--------- TypeError Traceback (most recent call last)