AttributeError: module 'tensorflow._api.v2.image' has no attribute 'image'
tensorflow版本改动太大,新版2.7修改图像尺寸的函数变成了
train_images = tf.image.resize(train_images, [32, 32])
AttributeError: module 'tensorflow._api.v2.image' has no attribute 'image'
tensorflow版本改动太大,新版2.7修改图像尺寸的函数变成了
train_images = tf.image.resize(train_images, [32, 32])