four_flower
four_flower copied to clipboard
关于input_data文件
我用你的代码运行了train,然后弹出了一个错误,AttributeError: module 'tensorflow_core._api.v2.train' has no attribute 'slice_input_producer' 错误指出在input_data文件里的tf.train.slice_input_producer([image, label])不存在。 我查了资料,tf.train.slice_input_producer已经被弃用了。但不知道该用什么替代它。
现在这个问题解决了吗?我也是一样的错误,百度还不知道怎么解决
请问应该怎么解决
请使用TensorFlow v1版本运行,如果使用新版本请参考以下链接。解决方法
你在安装tensorflow时用 pip install tensorflow<2.0
直接tf.compat.v1.train....