AttributeError: 模块“tensorflow_core._api.v2.image”没有属性“resize_images”

Big*_*ish 4 python tensorflow2.0

我想将图像从 28*28 调整为 32*32,使用。tf.image.resize_images(x_train, (32, 32))它返回AttributeError: module 'tensorflow_core._api.v2.image' has no attribute 'resize_images' 。tersorflow 的版本是 2.0.0。我该如何解决?

Zab*_*azi 10

应该是tf.image.resize查看更新的文档https://www.tensorflow.org/api_docs/python/tf/image/resize