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

AttributeError: module 'keras.backend' has no attribute 'tf' #26

Open
a461925358 opened this issue Jan 15, 2020 · 0 comments
Open

AttributeError: module 'keras.backend' has no attribute 'tf' #26

a461925358 opened this issue Jan 15, 2020 · 0 comments

Comments

@a461925358
Copy link

Traceback (most recent call last):
File "F:/pycharm/bert_in_keras/relation_extract.py", line 240, in
k1v = Lambda(seq_gather)([t, k1])
File "D:\software\anoconda\envs\keras_bert\lib\site-packages\keras\engine\base_layer.py", line 451, in call
output = self.call(inputs, **kwargs)
File "D:\software\anoconda\envs\keras_bert\lib\site-packages\keras\layers\core.py", line 716, in call
return self.function(inputs, **arguments)
File "F:/pycharm/bert_in_keras/relation_extract.py", line 212, in seq_gather
return K.tf.gather_nd(seq, idxs)
AttributeError: module 'keras.backend' has no attribute 'tf'

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

No branches or pull requests

1 participant