当前位置:网站首页>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
三、问题解决
版本匹配很重要!!!
至此,问题解决!
边栏推荐
- MySQL advanced learning notes (4)
- Program analysis and Optimization - 9 appendix XLA buffer assignment
- UART、RS232、RS485、I2C和SPI的介绍
- 微信小程序获取某个元素的信息(高、宽等),并将px转换为rpx。
- MySQL 23 classic interview hanging interviewer
- AcWing_188. 武士风度的牛_bfs
- 可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
- Multiprocess programming (I): basic concepts
- [pulsar document] concepts and architecture
- University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
猜你喜欢
有哪些比较推荐的论文翻译软件?
洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
Cmake basic use
Multiprocess programming (I): basic concepts
mm中的GAN模型架构
Introduction and use of ftrace tool
pageoffice-之bug修改之旅
University of Toronto:Anthony Coache | 深度强化学习的条件可诱导动态风险度量
What are the recommended thesis translation software?
One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
随机推荐
Luogu_ P1149 [noip2008 improvement group] matchstick equation_ Enumeration and tabulation
[IELTS reading] Wang Xiwei reading P2 (reading fill in the blank)
Xcode real machine debugging
Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration
node_modules删不掉
Centos7 one click compilation to build MySQL script
[target detection] r-cnn, fast r-cnn, fast r-cnn learning
Blue decides red - burst CS teamserver password
zhvoice
英文论文有具体的格式吗?
Bigder:32/100 测试发现的bug开发认为不是bug怎么处理
LeedCode1480. Dynamic sum of one-dimensional array
论文的设计方案咋写?
pageoffice-之bug修改之旅
helm 基础学习
Solution to the problem of abnormal display of PDF exported Chinese documents of confluence
Markdown使用教程
One of the reasons why setinterval timer does not take effect in ie: the callback is the arrow function
NC24325 [USACO 2012 Mar S]Flowerpot
Is there a specific format for English papers?