当前位置:网站首页>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
三、问题解决
版本匹配很重要!!!
至此,问题解决!
边栏推荐
- One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
- [MCU project training] eight way answering machine
- helm 基础学习
- Custom throttling function six steps to deal with complex requirements
- Bloom filter
- Markdown tutorial
- 洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
- Seckill system design
- Don't want teachers to see themselves with cameras in online classes? Virtual camera you deserve!
- Slf4j + logback logging framework
猜你喜欢

Introduction and use of ftrace tool

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

Bigder:32/100 测试发现的bug开发认为不是bug怎么处理

Confluence的PDF导出中文文档异常显示问题解决

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

Feature Engineering: summary of common feature transformation methods
![洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举](/img/a3/55bb71d39801ceeee421a0c8ded333.png)
洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举

How do educators find foreign language references?

Solution to the problem of abnormal display of PDF exported Chinese documents of confluence

Sysdig analysis container system call
随机推荐
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a
秒杀系统设计
Slf4j + Logback日志框架
大学生课堂作业2000~3000字的小论文,标准格式是什么?
NC50965 Largest Rectangle in a Histogram
Bypass AV with golang
Maya fishing house modeling
AcWing_188. 武士风度的牛_bfs
redis21道经典面试题,极限拉扯面试官
zhvoice
maya渔屋建模
[golang syntax] map common errors golang panic: assignment to entry in nil map
请问大家在什么网站上能查到英文文献?
多进程编程(一):基本概念
What are the recommended thesis translation software?
Is the multitasking loss in pytoch added up or backward separately?
Solution to the problem of abnormal display of PDF exported Chinese documents of confluence
Implement the foreach method of array
洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
Briefly talk about other uses of operation and maintenance monitoring
至此,问题解决!