module ‘tensorflow_core._api.v2.train’ has no attribute ‘slice_input_producer’

module ‘tensorflow_core._api.v2.train’ has no attribute ‘slice_input_producer’

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


<标题>

tf.train.slice_input_producer()和tf.train.batch ()


Read More: