省流,用
from tensorflow_core.examples.tutorials.mnist import input_data
我在复现某个久远的项目时遇到了这个问题,首先问了AI,然后它说examples模块在tensorflow2.x就不支持了,所以我将tensorflow版本下降到1.15,但是仍然显示没找到。
我以为是我安装的tensorflow不完整,没包含这个文件,于是准备去tensorflow的github主页中安装这个缺少的文件。
但是突然想到先找找,结果找到了,在tensorflow_core目录下,于是改用
`from tensorflow_core.examples.tutorials.mnist import input_data`
命令,结果显示没问题,大家可以参考一下。