tensorflow / models

Models and examples built with TensorFlow
Other
77.04k stars 45.77k forks source link

tf.python_io should be changed to tf.io #9299

Open miles-1 opened 4 years ago

miles-1 commented 4 years ago

File in question:

https://github.com/tensorflow/models/blob/master/research/object_detection/dataset_tools/tf_record_creation_util.py

Issue (and proposed fix):

If you run this file, the line from object_detection.dataset_tools import tf_record_creation_util is used, and that file (url above) has the line exit_stack.enter_context(tf.python_io.TFRecordWriter(file_name)), but I believe tf.python_io is depreciated and should be replaced with tf.io.

System information:

tf_env.txt

kumariko commented 3 years ago

@tombstone @pkulzc @jch1 any update on PR #9300?