"...git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "b5f1f52ff53b04d6cfaae24cbca1483e0282656c"
Commit a1eb92b0 authored by Mark Daoust's avatar Mark Daoust Committed by Taylor Robie
Browse files

Move references to `tf_record_iterator`. (#5830)

For tf2 this will only be available in `compat.v1`.
parent aead3912
...@@ -321,7 +321,7 @@ def shuffle_records(fname): ...@@ -321,7 +321,7 @@ def shuffle_records(fname):
tmp_fname = fname + ".unshuffled" tmp_fname = fname + ".unshuffled"
tf.gfile.Rename(fname, tmp_fname) tf.gfile.Rename(fname, tmp_fname)
reader = tf.python_io.tf_record_iterator(tmp_fname) reader = tf.compat.v1.io.tf_record_iterator(tmp_fname)
records = [] records = []
for record in reader: for record in reader:
records.append(record) records.append(record)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment