当前位置:网站首页>Attributeerror: 'tuple' object has no attribute 'layer' problem solving
Attributeerror: 'tuple' object has no attribute 'layer' problem solving
2022-07-03 00:32:00 【Go crazy first.】
One 、 Problem description
install keras_bert、tensorflow、keras after , The original program works well , After training two models, everything is normal , Then because of Bert English participle hour ,keras_bert Not meeting the requirements , tried transformers and bert4keras Medium tokenizer after , All of a sudden, an error was reported , There is a problem with model generation .

Looking up the data of many parties shows that the version is incompatible ,tensorflow2.0 The above will appear and keras Version of the problem .
Two 、 Problem solving
Test passed version 1:
python == 3.6
tensorflow-gpu == 2.2.0
keras == 2.4.3
keras_bert == 0.89.0
edition 2:
python 2.7 + tensorflow 1.13 + keras 2.2.4
3、 ... and 、 Problem solving
Version matching is very important !!!
thus , Problem solving !
边栏推荐
- kubernetes编写yml简单入门
- Should you study kubernetes?
- Bloom filter
- TypeError: Cannot read properties of undefined (reading ***)
- NC24840 [USACO 2009 Mar S]Look Up
- 数组常用操作方法整理(包含es6)及详细使用
- 论文的英文文献在哪找(除了知网)?
- Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration
- Blue decides red - burst CS teamserver password
- Multiprocess programming (V): semaphores
猜你喜欢

CMake基本使用

FAQ | FAQ for building applications for large screen devices

Which software can translate an English paper in its entirety?

Sysdig analysis container system call

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

Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)

Seckill system design

Multiprocess programming (I): basic concepts

redis21道经典面试题,极限拉扯面试官
![[IELTS reading] Wang Xiwei reading P1 (reading judgment question)](/img/ee/540661fcb2cf1cf1eb15e2026c997a.png)
[IELTS reading] Wang Xiwei reading P1 (reading judgment question)
随机推荐
What are the recommended thesis translation software?
Which software can translate an English paper in its entirety?
MySQL 23 classic interview hanging interviewer
How to specify const array in the global scope of rust- How to specify const array in global scope in Rust?
NC50528 滑动窗口
NC50965 Largest Rectangle in a Histogram
Architecture: load balancing
Implement the foreach method of array
英文论文有具体的格式吗?
Maya fishing house modeling
How to write the design scheme of the thesis?
Go custom sort
奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
Kubernetes simple introduction to writing YML
Bypass AV with golang
【luogu P4320】道路相遇(圆方树)
洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举
LeedCode1480.一维数组的动态和
Chapter 4 of getting started with MySQL: data types stored in data tables
thus , Problem solving !