【发布时间】:2020-09-22 09:12:17
【问题描述】:
我正在尝试从 tensorflow 调用一个函数来解码 tiff 图像,同时我在 kaggle 笔记本上运行笔记本并在这一行中:
img = tfio.experimental.image.decode_tiff(img, channels=1)
它给了我错误:
AttributeError:在用户代码中:
<ipython-input-5-d30698f56813>:11 load * img = tfio.experimental.image.decode_tiff(img, channels=1) AttributeError: module 'tensorflow.io' has no attribute 'experimental'
我目前正在像这样导入 tensorflow.io:
import tensorflow.io as tfio
而我当前的版本:print(f"Tensorflow ver. {tf.__version__}") 是
张量流版本。 2.3.0
【问题讨论】:
标签: python python-3.x tensorflow tensorflow2.0