AttributeError: module 'tensorflow._api.v2.train' has no attribute 'slice_input_producer'
2025.04.10测试:
# flow_list = tf.train.slice_input_producer(list(self.tensor_dict.values()), shuffle=self.shuffle)
flow_list = tf.compat.v1.train.slice_input_producer(list(self.tensor_dict.values()), shuffle=self.shuffle)