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

这一行代码方法废弃了,请问该如何改动 #6

Open
yp199618 opened this issue Apr 5, 2020 · 1 comment
Open

这一行代码方法废弃了,请问该如何改动 #6

yp199618 opened this issue Apr 5, 2020 · 1 comment

Comments

@yp199618
Copy link

yp199618 commented Apr 5, 2020

training.py

input_queue = tf.train.slice_input_producer([image,label])

尝试过

# input_queue = tf.compat.v1.train.slice_input_producer([image,label])
# input_queue = tf.data.Dataset.from_tensor_slices([image, label])

看不懂,哈哈哈

@Lantinid
Copy link

把import tensorflow as tf改为
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

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

2 participants