Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
a1eb92b0
Commit
a1eb92b0
authored
Dec 19, 2018
by
Mark Daoust
Committed by
Taylor Robie
Dec 19, 2018
Browse files
Move references to `tf_record_iterator`. (#5830)
For tf2 this will only be available in `compat.v1`.
parent
aead3912
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/transformer/data_download.py
official/transformer/data_download.py
+1
-1
No files found.
official/transformer/data_download.py
View file @
a1eb92b0
...
...
@@ -321,7 +321,7 @@ def shuffle_records(fname):
tmp_fname
=
fname
+
".unshuffled"
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
=
[]
for
record
in
reader
:
records
.
append
(
record
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment