AttributeError:模块“ keras.backend”没有属性“ common”

问题描述

我试图执行一些项目。但是我有一个attribute error。 我检查了Tensorflow和Keras版本。

Name: tensorflow
Version: 2.3.1
Name: Keras
Version: 2.4.3
Summary: Deep Learning for humans
python 3.8.2 

代码在这里。

self.dim_ordering = K.common.image_dim_ordering()

错误消息:

self.dim_ordering = K.common.image_dim_ordering()
AttributeError: module 'keras.backend' has no attribute 'common'

可以使用K.image_data_format()代替k.common.image_dim_ordering()吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)