p>
module ‘tensorflow_core._api.v2.train’ has no attribute ‘slice_input_producer’
p>
p>
tensorflow version does not uninstall and reinstall
pip uninstall tensorflow
I reinstalled version 2.1.0 and reinstalled version 1.5.0, and did not report this error
pip install tensorflow==1.5.0
p>
p>
<标题> h1>
tf.train.slice_input_producer()和tf.train.batch () p>
p>
p>
p>
p>
p>
p>
p>
p>
p>
div>