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
edcb2146
Commit
edcb2146
authored
Apr 03, 2020
by
A. Unique TensorFlower
Browse files
Internal changes.
PiperOrigin-RevId: 304633832
parent
4a998743
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/vision/detection/dataloader/input_reader.py
official/vision/detection/dataloader/input_reader.py
+2
-1
No files found.
official/vision/detection/dataloader/input_reader.py
View file @
edcb2146
...
@@ -85,13 +85,14 @@ class InputFn(object):
...
@@ -85,13 +85,14 @@ class InputFn(object):
if
self
.
_input_sharding
and
ctx
and
ctx
.
num_input_pipelines
>
1
:
if
self
.
_input_sharding
and
ctx
and
ctx
.
num_input_pipelines
>
1
:
dataset
=
dataset
.
shard
(
ctx
.
num_input_pipelines
,
ctx
.
input_pipeline_id
)
dataset
=
dataset
.
shard
(
ctx
.
num_input_pipelines
,
ctx
.
input_pipeline_id
)
dataset
=
dataset
.
cache
()
if
self
.
_is_training
:
if
self
.
_is_training
:
dataset
=
dataset
.
repeat
()
dataset
=
dataset
.
repeat
()
dataset
=
dataset
.
interleave
(
dataset
=
dataset
.
interleave
(
map_func
=
lambda
file_name
:
self
.
_dataset_fn
(
file_name
),
cycle_length
=
32
,
map_func
=
lambda
file_name
:
self
.
_dataset_fn
(
file_name
),
cycle_length
=
32
,
num_parallel_calls
=
tf
.
data
.
experimental
.
AUTOTUNE
)
num_parallel_calls
=
tf
.
data
.
experimental
.
AUTOTUNE
)
dataset
=
dataset
.
cache
()
if
self
.
_is_training
:
if
self
.
_is_training
:
# Large shuffle size is critical for 2vm input pipeline. Can use small
# Large shuffle size is critical for 2vm input pipeline. Can use small
...
...
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