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
d4e6064e
Commit
d4e6064e
authored
Feb 21, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Feb 21, 2021
Browse files
Use None for tf.data seed when tf.data service is enabled.
PiperOrigin-RevId: 358727239
parent
8e652bbd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
official/core/input_reader.py
official/core/input_reader.py
+4
-1
No files found.
official/core/input_reader.py
View file @
d4e6064e
...
@@ -111,7 +111,10 @@ class InputReader:
...
@@ -111,7 +111,10 @@ class InputReader:
self
.
_parser_fn
=
parser_fn
self
.
_parser_fn
=
parser_fn
self
.
_transform_and_batch_fn
=
transform_and_batch_fn
self
.
_transform_and_batch_fn
=
transform_and_batch_fn
self
.
_postprocess_fn
=
postprocess_fn
self
.
_postprocess_fn
=
postprocess_fn
self
.
_seed
=
_get_random_integer
()
# When tf.data service is enabled, each data service worker should get
# different random seeds. Thus, we set `seed` to None.
self
.
_seed
=
(
None
if
params
.
enable_tf_data_service
else
_get_random_integer
())
self
.
_enable_tf_data_service
=
(
self
.
_enable_tf_data_service
=
(
params
.
enable_tf_data_service
and
params
.
tf_data_service_address
)
params
.
enable_tf_data_service
and
params
.
tf_data_service_address
)
...
...
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