当前位置:网站首页>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
三、问题解决
版本匹配很重要!!!
至此,问题解决!
边栏推荐
- 监控容器运行时工具Falco
- Array de duplication
- Solution to the problem of abnormal display of PDF exported Chinese documents of confluence
- Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration
- 有哪些比较推荐的论文翻译软件?
- Nc50528 sliding window
- [shutter] Introduction to the official example of shutter Gallery (project introduction | engineering construction)
- ftrace工具的介绍及使用
- [target detection] r-cnn, fast r-cnn, fast r-cnn learning
- 洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
猜你喜欢
论文的英文文献在哪找(除了知网)?
Bigder: how to deal with the bugs found in the 32/100 test if they are not bugs
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a
布隆过滤器
字符设备注册常用的两种方法和步骤
UART、RS232、RS485、I2C和SPI的介绍
pod生命周期详解
Markdown tutorial
Multiprocess programming (II): Pipeline
Architecture: load balancing
随机推荐
Program analysis and Optimization - 9 appendix XLA buffer assignment
多进程编程(五):信号量
Multiprocess programming (V): semaphores
NC50965 Largest Rectangle in a Histogram
为什么网站打开速度慢?
Maya fishing house modeling
mm中的GAN模型架构
有哪些比较推荐的论文翻译软件?
JVM foundation review
LeedCode1480. Dynamic sum of one-dimensional array
可下载《2022年中国数字化办公市场研究报告》详解1768亿元市场
Don't want teachers to see themselves with cameras in online classes? Virtual camera you deserve!
Where can I find the English literature of the thesis (except HowNet)?
英文论文有具体的格式吗?
Should you study kubernetes?
CMake基本使用
Luogu_ P2010 [noip2016 popularization group] reply date_ Half enumeration
论文的英文文献在哪找(除了知网)?
pageoffice-之bug修改之旅
[shutter] Introduction to the official example of shutter Gallery (learning example | email application | retail application | wealth management application | travel application | news application | a