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
c455baa8
Commit
c455baa8
authored
Sep 19, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 475325492
parent
c2697824
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/core/file_writers.py
official/core/file_writers.py
+1
-1
No files found.
official/core/file_writers.py
View file @
c455baa8
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
import
io
import
io
from
typing
import
Optional
,
Sequence
,
Union
from
typing
import
Optional
,
Sequence
,
Union
import
riegeli
import
tensorflow
as
tf
import
tensorflow
as
tf
...
@@ -75,5 +74,6 @@ def _write_riegeli(examples: Sequence[Union[tf.train.Example,
...
@@ -75,5 +74,6 @@ def _write_riegeli(examples: Sequence[Union[tf.train.Example,
output_path: Output path for the dataset.
output_path: Output path for the dataset.
"""
"""
with
io
.
FileIO
(
output_path
,
'wb'
)
as
fileio
:
with
io
.
FileIO
(
output_path
,
'wb'
)
as
fileio
:
import
riegeli
# pylint: disable=g-import-not-at-top
with
riegeli
.
RecordWriter
(
fileio
)
as
writer
:
with
riegeli
.
RecordWriter
(
fileio
)
as
writer
:
writer
.
write_messages
(
examples
)
writer
.
write_messages
(
examples
)
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