当前位置:网站首页>keras ‘InputLayer‘ object is not iterable
keras ‘InputLayer‘ object is not iterable
2022-06-30 09:36:00 【农民小飞侠】
今天在使用keras进行可视化网络结构的时候出现了下面的错误:
'InputLayer' object is not iterable
解决方法
发现自己使用的是tf keras不是keras,所以切换成tfkeras的plot_model就行了:
from tensorflow.keras.utils import plot_model
参考文献
[1].TypeError: ‘InputLayer’ object is not iterable. https://stackoverflow.com/questions/60419040/typeerror-inputlayer-object-is-not-iterable
边栏推荐
- NTP of Prometheus monitoring_ exporter
- JWT expiration processing - single token scheme
- About the split and join operations of strings
- Abstract classes and interfaces
- How do databases go to the enterprise cloud? Click to view the answer
- 训练一个图像分类器demo in PyTorch【学习笔记】
- Flume learning 1
- 正则表达式基础
- 事件流的说明》
- Flutter的特别之处在哪里
猜你喜欢
Principle and implementation of small program hand-held bullet screen (uni APP)
【AGC】构建服务3-认证服务示例
P. Summary of NP, NPC, NP hard and other issues
Shell script functions
C语言实现扫雷游戏,附详解及完整代码
[Ubuntu redis installation]
Dart development skills
Eight sorts (II)
将小程序容器技术应用到物联网IoT生态建设中
Plan the IT technology route for the new year? Let's learn about Gartner infrastructure hype cycle
随机推荐
JUL简介
事件委托的使用与说明》
utils session&rpc
G-Code 详解
Description of event object
Dart development skills
Xlnet (generalized autorefressive trainingfor language understanding) paper notes
安装和使用
Appium自动化测试基础 — 12.APPium自动化测试框架介绍
Stack Title: String decoding
Appium自动化测试基础 — adb shell 命令
Slf4j: failed to load class "org.slf4j.impl.staticloggerbinder"
Redis docker master-slave mode and sentinel
浏览器复制的网址粘贴到文档是超链接
Oracle cross database replication data table dblink
Mysql database learning 1
【ARK UI】HarmonyOS ETS的启动页的实现
Train an image classifier demo in pytorch [learning notes]
【JVM】G1垃圾回收器简述
About Jul