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

请问使用simbert功能需要的tf、keras、bert4keras对应的版本是多少 #11

Open
robbenplus opened this issue Jun 12, 2021 · 9 comments

Comments

@robbenplus
Copy link

我的版本信息如下
bert4keras 0.7.7
keras 2.4.3
tensorflow 2.2.0

导入nlpcda提示 ‘ Simbert不能正常使用,除非你安装:bert4keras、tensorflow ,为了安装快捷,没有默认安装.... module 'tensorflow.compat.v2' has no attribute 'internal' ’

@425776024
Copy link
Owner

我的版本信息如下
bert4keras 0.7.7
keras 2.4.3
tensorflow 2.2.0

导入nlpcda提示 ‘ Simbert不能正常使用,除非你安装:bert4keras、tensorflow ,为了安装快捷,没有默认安装.... module 'tensorflow.compat.v2' has no attribute 'internal' ’

去原作者下面看

@orangetwo
Copy link

解决了么

@425776024
Copy link
Owner

解决了么

你好,我查了一下当时的测试工程,环境是:

keras==2.3.1
bert4keras==0.7.7
# tensorflow==1.13.1
tensorflow-gpu==1.13.1

后续会更新到项目的提示中

@425776024
Copy link
Owner

我的版本信息如下 bert4keras 0.7.7 keras 2.4.3 tensorflow 2.2.0

导入nlpcda提示 ‘ Simbert不能正常使用,除非你安装:bert4keras、tensorflow ,为了安装快捷,没有默认安装.... module 'tensorflow.compat.v2' has no attribute 'internal' ’

你好,我查了一下当时的测试工程,环境是:

keras==2.3.1
bert4keras==0.7.7
# tensorflow==1.13.1
tensorflow-gpu==1.13.1

@robbenplus
Copy link
Author

robbenplus commented Oct 13, 2021 via email

@425776024
Copy link
Owner

百度下报错信息就能解决啊,我记得tf2.3好像是可以?

是的,但是好多网友说版本问题导致报错,容易误导,这个版本只是参考

@Lanme
Copy link

Lanme commented Nov 11, 2021

我两个都安装了,bert4keras:0.10.6 tensorflow:2.1.0,一样报错

@425776024
Copy link
Owner

看上文哈⬆️

我两个都安装了,bert4keras:0.10.6 tensorflow:2.1.0,一样报错

image

@Lanme
Copy link

Lanme commented Nov 11, 2021

看上文哈⬆️

我两个都安装了,bert4keras:0.10.6 tensorflow:2.1.0,一样报错

image

ok了,去simbert的github页面上写的是bert4keras=0.7.7,tensorflow版本没改也没问题。

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

4 participants