当前位置:网站首页>AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
2022-07-02 23:31:00 【不撸先疯。】
一、问题描述
安装keras_bert、tensorflow、keras后,本来程序运行好好的,训练了两个模型也一切正常,随后由于Bert英文分词时,keras_bert不满足要求,尝试了transformers和bert4keras中的tokenizer后,突然报错,模型生成有问题。

查阅多方资料显示版本不兼容,tensorflow2.0以上会出现和keras版本问题。
二、问题解决
测试通过版本1:
python == 3.6
tensorflow-gpu == 2.2.0
keras == 2.4.3
keras_bert == 0.89.0
版本2:
python 2.7 + tensorflow 1.13 + keras 2.2.4
三、问题解决
版本匹配很重要!!!
至此,问题解决!
边栏推荐
- 可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
- Andorid 获取系统标题栏高度
- [Chongqing Guangdong education] audio visual language reference materials of Xinyang Normal University
- FAQ | FAQ for building applications for large screen devices
- Cmake basic use
- How do educators find foreign language references?
- SQL query statement parameters are written successfully
- Preview word documents online
- Multi process programming (III): message queue
- JS interviewer wants to know how much you understand call, apply, bind no regrets series
猜你喜欢

mm中的GAN模型架构

写论文可以去哪些网站搜索参考文献?

Which software can translate an English paper in its entirety?

多进程编程(二):管道

Xcode real machine debugging

Which websites can I search for references when writing a thesis?

TypeError: Cannot read properties of undefined (reading ***)

Sysdig analysis container system call

论文的英文文献在哪找(除了知网)?

MySQL 23道经典面试吊打面试官
随机推荐
v8
NC50965 Largest Rectangle in a Histogram
【Pulsar文档】概念和架构/Concepts and Architecture
微信小程序获取某个元素的信息(高、宽等),并将px转换为rpx。
Where can I find the English literature of the thesis (except HowNet)?
NC24840 [USACO 2009 Mar S]Look Up
Where can I find foreign papers?
有哪些比较推荐的论文翻译软件?
Multiprocess programming (4): shared memory
监控容器运行时工具Falco
Graduation summary
JSON conversion tool class
DotNet圈里一个优秀的ORM——FreeSql
[golang syntax] map common errors golang panic: assignment to entry in nil map
程序分析与优化 - 9 附录 XLA的缓冲区指派
论文的设计方案咋写?
AcWing_188. 武士风度的牛_bfs
What are the recommended thesis translation software?
Why is the website slow to open?
JVM foundation review
至此,问题解决!