当前位置:网站首页>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 !
边栏推荐
- Nc20806 District interval
- NC24325 [USACO 2012 Mar S]Flowerpot
- Rust字符串切片、结构体和枚举类
- NC50965 Largest Rectangle in a Histogram
- How do educators find foreign language references?
- Cmake basic use
- 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
- JS interviewer wants to know how much you understand call, apply, bind no regrets series
- Introduction and use of ftrace tool
- Markdown使用教程
猜你喜欢

Logback configuration file

Install docker and use docker to install MySQL

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

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

秒杀系统设计

What website can you find English literature on?

Maya fishing house modeling

Basic 10 of C language: array and pointer

sysdig分析容器系统调用
![[shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)](/img/f7/a8eb8e40b9ea25021751d7150936ac.jpg)
[shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)
随机推荐
LeedCode1480. Dynamic sum of one-dimensional array
Where can I find the English literature of the thesis (except HowNet)?
Sysdig analysis container system call
NC24325 [USACO 2012 Mar S]Flowerpot
【Pulsar文档】概念和架构/Concepts and Architecture
写论文可以去哪些网站搜索参考文献?
Rust字符串切片、结构体和枚举类
Bypass AV with golang
setInterval定时器在ie不生效原因之一:回调的是箭头函数
国外的论文在那找?
NC50965 Largest Rectangle in a Histogram
NC20806 区区区间间间
Monitor container runtime tool Falco
Introduction and use of ftrace tool
The "2022 China Digital Office Market Research Report" can be downloaded to explain the 176.8 billion yuan market in detail
简单聊聊运维监控的其他用途
Slf4j + Logback日志框架
百数不断创新,打造自由的低代码办公工具
Andorid gets the system title bar height
JSON转换工具类
thus , Problem solving !