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

from bert4keras.models import build_transformer_model #502

Open
Ganga-s opened this issue Dec 26, 2022 · 2 comments
Open

from bert4keras.models import build_transformer_model #502

Ganga-s opened this issue Dec 26, 2022 · 2 comments

Comments

@Ganga-s
Copy link

Ganga-s commented Dec 26, 2022

from bert4keras.models import build_transformer_model
File "/usr/local/lib/python3.8/dist-packages/bert4keras/models.py", line 5, in
from bert4keras.backend import get_available_gpus
File "/usr/local/lib/python3.8/dist-packages/bert4keras/backend.py", line 513, in
keras.utils.get_custom_objects().update(custom_objects)
AttributeError: module 'keras.utils' has no attribute 'get_custom_objects'

@Ganga-s
Copy link
Author

Ganga-s commented Dec 26, 2022

Below are installed
tensorflow-gpu==2.5.0
keras==2.3.1
bert4keras

@bojone
Copy link
Owner

bojone commented Feb 20, 2023

tf换成1.15试试,tf2.5太新了。

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

2 participants