东方耀AI技术分享

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 4123|回复: 0

[课堂笔记] AttributeError: module 'keras.backend' has no attribute 'image_dim_ordering'

[复制链接]

1365

主题

1856

帖子

1万

积分

管理员

Rank: 10Rank: 10Rank: 10

积分
14418
QQ
发表于 2019-11-18 18:02:56 | 显示全部楼层 |阅读模式
AttributeError: module 'keras.backend' has no attribute 'image_dim_ordering'
import keras.backend as K
报错代码为:K.image_dim_ordering() == 'tf'


改为:
K.image_data_format() == 'channels_last'


让天下人人学会人工智能!人工智能的前景一片大好!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|人工智能工程师的摇篮 ( 湘ICP备2020019608号-1 )

GMT+8, 2024-3-28 21:11 , Processed in 0.172694 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表