-
Notifications
You must be signed in to change notification settings - Fork 56
Error with Keras 2.4.2 and 2.4.3 #33
Comments
What is your tensorflow version? |
2.2.0 |
Thanks, I will look into this. |
I am facing the same issue. As far as I understand the issue is with the keras compatibility of the tensorflow backend. I am using the following versions - Can you please help with versions you used with the build. Maybe changing to the same will resolve the issue. |
@skt7 I generally use with tf==1.14 and keras==2.2.4. It should work with tf 2.2 and keras 2.3 too as mentioned by the original poster on this issue. |
Thanks @bedapudi6788, it worked with - Also for tensorflow 1, it works fine with the versions - Few Suggestions -
|
Updated the readme to reflect these requirements. @skt7 Thank you for the suggestion. |
I tried using DeepSegment In Colab ,but it showing error at line "segmenter = DeepSegment('en')" |
Hello!
I got an "automatic" update of Keras from 2.3.1 to 2.4.3 (I'm using pipenv, and Keras was set to "*" in the Pipfile).
My code won't run anymore with Keras 2.4.3, I'm getting the error below at runtime.
No issue with 2.3.1 though.
(I don't mind using Keras 2.3.1 so not really a blocking issue, just thought you'd wanted to know.)
Traceback (most recent call last): File "xxx/main.py", line 23, in <module> segmenter = DeepSegment('fr')
m = K.slice(states[3], [0, t], [-1, 2]) AttributeError: module 'keras.backend' has no attribute 'slice'
I also have an error with Keras 2.4.2:
Exception occured: in user code:
/xxx/lib/python3.8/site-packages/tensorflow/python/keras/utils/tf_utils.py:140 get_reachable_from_inputs raise TypeError('Expected Operation, Variable, or Tensor, got ' + str(x)) TypeError: Expected Operation, Variable, or Tensor, got 0
The text was updated successfully, but these errors were encountered: