当前位置:网站首页>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
三、问题解决
版本匹配很重要!!!
至此,问题解决!
边栏推荐
- setInterval定时器在ie不生效原因之一:回调的是箭头函数
- Confluence的PDF导出中文文档异常显示问题解决
- CMake基本使用
- Angled detection frame | calibrated depth feature for target detection (with implementation source code)
- FRP reverse proxy +msf get shell
- Why is the website slow to open?
- Nc50528 sliding window
- pod生命周期详解
- [target detection] r-cnn, fast r-cnn, fast r-cnn learning
- Explain in detail the significance of the contour topology matrix obtained by using the contour detection function findcontours() of OpenCV, and how to draw the contour topology map with the contour t
猜你喜欢

130 pages of PPT from the brick boss introduces the new features of Apache spark 3.2 & 3.3 in depth

FAQ | FAQ for building applications for large screen devices

Chapter 3 of getting started with MySQL: database creation and operation

Should you study kubernetes?

Architecture: load balancing

maya渔屋建模

Gan model architecture in mm

What are the recommended thesis translation software?
![[MCU project training] eight way answering machine](/img/a3/6a50619cd16269bf485a4a273677aa.jpg)
[MCU project training] eight way answering machine

Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)
随机推荐
Redis21 classic interview questions, extreme pull interviewer
NC24325 [USACO 2012 Mar S]Flowerpot
程序分析与优化 - 9 附录 XLA的缓冲区指派
Leetcode skimming - game 280
Gan model architecture in mm
Andorid gets the system title bar height
Sysdig analysis container system call
[pulsar document] concepts and architecture
NC17059 队列Q
Chinatelecom has maintained a strong momentum in the mobile phone user market, but China Mobile has opened a new track
JSON转换工具类
Blue decides red - burst CS teamserver password
JSON conversion tool class
简单聊聊运维监控的其他用途
How do educators find foreign language references?
Chapter 4 of getting started with MySQL: data types stored in data tables
NC20806 区区区间间间
国外的论文在那找?
Shell脚本基本使用
LeedCode1480.一维数组的动态和
至此,问题解决!