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 #66

Open
byrwh opened this issue Feb 16, 2022 · 12 comments
Open

AttributeError #66

byrwh opened this issue Feb 16, 2022 · 12 comments

Comments

@byrwh
Copy link

byrwh commented Feb 16, 2022

AttributeError: 'Add' object has no attribute 'outbound_nodes'
I‘ve tried several requirement versions as adviced but at last I always met this problem .
thanks if someone has met the same error and can tell me the solution.

@byrwh
Copy link
Author

byrwh commented Feb 16, 2022

after solving this I also met the following errors
1:AttributeError: 'Node' object has no attribute 'output_masks'

2:ImportError: cannot import name 'backend_config' from 'tensorflow.python.keras' (/home/wanghui/anaconda3/envs/env1/lib/python3.7/site-packages/tensorflow/python/keras/init.py)

@fihxc
Copy link

fihxc commented Mar 6, 2022

Got same errors. Have you found any solution?

2 similar comments
@Ruin823
Copy link

Ruin823 commented Mar 15, 2022

Got same errors. Have you found any solution?

@lightCraft2020
Copy link

Got same errors. Have you found any solution?

@lightCraft2020
Copy link

update the requirements.txt file

can solve the problem.

keras-bert = 0.80.0
tensorflow-gpu = 1.13.1
keras-layer-normalization==0.15.0
keras-multi-head==0.28.0
keras-pos-embd==0.12.0
keras-position-wise-feed-forward==0.7.0
keras-transformer==0.33.0

@Ruin823
Copy link

Ruin823 commented Mar 18, 2022

@lightCraft2020 The problem has been solved. Thank you very much!

@AnwarsaeedDMU
Copy link

@lightCraft2020 which python version you used? I tried it with 3.7 but it still gives me errors from tensorflow.backend.keras.backend and sometimes attribute errors. I am using pycham. please guide me on this.

@AnwarsaeedDMU
Copy link

@lightCraft2020 and this error: ImportError: DLL load failed: The specified module could not be found.

@byrwh
Copy link
Author

byrwh commented Mar 9, 2023 via email

@AnwarsaeedDMU
Copy link

@WANG-HUI-NAVY Did you solved the problem already? I create conda env, employed python 3.7, and install all these requirements but still, the TensorFlow make issues. Did we need to install cuda? if yes so which version?

@32209056
Copy link

好心人解答一下,运行run.py文件时报错,显示无法找到该文件,请问best_model.weights文件是如何生成的

@kuaizhiyan
Copy link

update the requirements.txt file

can solve the problem.

keras-bert = 0.80.0
tensorflow-gpu = 1.13.1
keras-layer-normalization==0.15.0
keras-multi-head==0.28.0
keras-pos-embd==0.12.0
keras-position-wise-feed-forward==0.7.0
keras-transformer==0.33.0

Yes !!! It actually works out !! Thank u very much!
I see that other guys still do not solve the problem. The point is to install it exactly as required above.
Which means:
pip install tensorflow-gpu==1.13.1 keras-bert==0.80.0 keras-layer-normalization==0.15.0 keras-multi-head==0.28.0 keras-pos-embd==0.12.0 keras-position-wise-feed-forward==0.7.0 keras-transformer==0.33.0

You can not work out by only pip install keras-bert==0.80.0

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

7 participants