tensorflow / tensorflow/models

tf.python_io should be changed to tf.io

Open
#9,299 1 comment 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Oct 18, 2021.

models:research:odapi type:bug
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

  • I am using the latest TensorFlow Model Garden release and TensorFlow 2.
  • I am reporting the issue to the correct repository. (Model Garden official or research directory)
  • I checked to make sure that this issue has not been filed already.

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.