Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于input_data文件 #11

Open
Libaididi opened this issue Oct 10, 2019 · 5 comments
Open

关于input_data文件 #11

Libaididi opened this issue Oct 10, 2019 · 5 comments

Comments

@Libaididi
Copy link

我用你的代码运行了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已经被弃用了。但不知道该用什么替代它。

@wu-he
Copy link

wu-he commented Nov 19, 2019

现在这个问题解决了吗?我也是一样的错误,百度还不知道怎么解决

@Wencheng0512
Copy link

请问应该怎么解决

@waitingfordark
Copy link
Owner

waitingfordark commented Nov 26, 2019

请使用TensorFlow v1版本运行,如果使用新版本请参考以下链接。解决方法

@edmund-zhao
Copy link

你在安装tensorflow时用 pip install tensorflow<2.0

@jz1998
Copy link

jz1998 commented Apr 8, 2020

直接tf.compat.v1.train....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants