当前位置:网站首页>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 !
边栏推荐
- TypeError: Cannot read properties of undefined (reading ***)
- [IELTS reading] Wang Xiwei reading P1 (reading judgment question)
- Free we media essential tools sharing
- ftrace工具的介绍及使用
- 奥斯陆大学:Li Meng | 基于Swin-Transformer的深度强化学习
- 字符设备注册常用的两种方法和步骤
- Two common methods and steps of character device registration
- JS interviewer wants to know how much you understand call, apply, bind no regrets series
- Where can I find the English literature of the thesis (except HowNet)?
- 监控容器运行时工具Falco
猜你喜欢

MySQL 23道经典面试吊打面试官

One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function

How do educators find foreign language references?

Hundreds of continuous innovation to create free low code office tools

Pageoffice - bug modification journey

Maya fishing house modeling

Shell 实现文件基本操作(切割、排序、去重)

Introduction and use of ftrace tool
![洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举](/img/a3/55bb71d39801ceeee421a0c8ded333.png)
洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举

Should you study kubernetes?
随机推荐
Pageoffice - bug modification journey
What website can you find English literature on?
What is the standard format of a 2000-3000 word essay for college students' classroom homework?
logback配置文件
Architecture: database architecture design
Bigder:32/100 测试发现的bug开发认为不是bug怎么处理
Automated defect analysis in electronic microscopic images
Understanding and application of least square method
【luogu P4320】道路相遇(圆方树)
Kubernetes simple introduction to writing YML
Markdown tutorial
关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
Cmake basic use
Linux软件:如何安装Redis服务
Free we media essential tools sharing
setInterval定时器在ie不生效原因之一:回调的是箭头函数
哪些软件可以整篇翻译英文论文?
TypeError: Cannot read properties of undefined (reading ***)
NC24840 [USACO 2009 Mar S]Look Up
Two common methods and steps of character device registration
thus , Problem solving !