"magic_pdf/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "d13f3c6d1462c21bc147ad913df5b19a959cfd4d"
Commit a5c96853 authored by Mirali Ahmadli's avatar Mirali Ahmadli
Browse files

Fixed tf.compat.v1 bug

parent 0effd158
...@@ -331,7 +331,7 @@ def shuffle_records(fname): ...@@ -331,7 +331,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.compat.v1.io.tf_record_iterator(tmp_fname) reader = tf.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