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
7a3d6c4c
Commit
7a3d6c4c
authored
Mar 04, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
Mar 04, 2020
Browse files
Internal change
PiperOrigin-RevId: 298986381
parent
bb8a18c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
official/nlp/bert/input_pipeline.py
official/nlp/bert/input_pipeline.py
+9
-9
No files found.
official/nlp/bert/input_pipeline.py
View file @
7a3d6c4c
...
...
@@ -87,7 +87,7 @@ def create_pretrain_dataset(input_patterns,
if
input_pipeline_context
and
input_pipeline_context
.
num_input_pipelines
>
1
:
dataset
=
dataset
.
shard
(
input_pipeline_context
.
num_input_pipelines
,
input_pipeline_context
.
input_pipeline_id
)
if
is_training
:
dataset
=
dataset
.
repeat
()
# We set shuffle buffer to exactly match total number of
...
...
@@ -132,7 +132,7 @@ def create_pretrain_dataset(input_patterns,
if
is_training
:
dataset
=
dataset
.
shuffle
(
100
)
dataset
=
dataset
.
batch
(
batch_size
,
drop_remainder
=
True
)
dataset
=
dataset
.
batch
(
batch_size
,
drop_remainder
=
is_training
)
dataset
=
dataset
.
prefetch
(
1024
)
return
dataset
...
...
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