tensorflow2内置的keras!= keras

简介

大部分API通用,但是千万别把二者等同,不然你会遇到下面的问题:

AttributeError: ‘tuple‘ object has no attribute ‘layer‘

通过keras_applications 调用官方预置网络时,basemodel.output会出现此问题。

猜你喜欢

转载自blog.csdn.net/chenfengshf/article/details/118521473