当前位置:网站首页>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 !
边栏推荐
- 关于Unity屏幕相关Screen的练习题目,Unity内部环绕某点做运动
- AttributeError: ‘tuple‘ object has no attribute ‘layer‘问题解决
- 多进程编程(一):基本概念
- Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)
- NC24840 [USACO 2009 Mar S]Look Up
- 【单片机项目实训】八路抢答器
- [IELTS reading] Wang Xiwei reading P2 (reading fill in the blank)
- 有哪些比较推荐的论文翻译软件?
- 【雅思阅读】王希伟阅读P1(阅读判断题)
- 字符设备注册常用的两种方法和步骤
猜你喜欢

Gan model architecture in mm

【雅思阅读】王希伟阅读P1(阅读判断题)

Introduction and use of ftrace tool

Shell 实现文件基本操作(sed-编辑、awk-匹配)

为什么网站打开速度慢?

DotNet圈里一个优秀的ORM——FreeSql

Which software can translate an English paper in its entirety?

Logback configuration file

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

Markdown使用教程
随机推荐
为什么网站打开速度慢?
v8
node_ Modules cannot be deleted
Markdown tutorial
What website can you find English literature on?
AcWing_188. 武士风度的牛_bfs
Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)
Shell脚本基本使用
使用jenkins之二Job
Missing number
多进程编程(五):信号量
Multi process programming (III): message queue
node_modules删不掉
NC24840 [USACO 2009 Mar S]Look Up
百数不断创新,打造自由的低代码办公工具
FAQ | FAQ for building applications for large screen devices
英文论文有具体的格式吗?
Which software can translate an English paper in its entirety?
TypeError: Cannot read properties of undefined (reading ***)
【luogu P4320】道路相遇(圆方树)
thus , Problem solving !