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
e33fb967
Commit
e33fb967
authored
Feb 14, 2020
by
Chen Chen
Committed by
A. Unique TensorFlower
Feb 14, 2020
Browse files
Internal Change
PiperOrigin-RevId: 295222307
parent
5f296bbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
official/nlp/bert/input_pipeline.py
official/nlp/bert/input_pipeline.py
+4
-0
No files found.
official/nlp/bert/input_pipeline.py
View file @
e33fb967
...
@@ -78,6 +78,10 @@ def create_pretrain_dataset(input_patterns,
...
@@ -78,6 +78,10 @@ def create_pretrain_dataset(input_patterns,
tf
.
io
.
FixedLenFeature
([
1
],
tf
.
int64
),
tf
.
io
.
FixedLenFeature
([
1
],
tf
.
int64
),
}
}
for
input_pattern
in
input_patterns
:
if
not
tf
.
io
.
gfile
.
glob
(
input_pattern
):
raise
ValueError
(
'%s does not match any files.'
%
input_pattern
)
dataset
=
tf
.
data
.
Dataset
.
list_files
(
input_patterns
,
shuffle
=
is_training
)
dataset
=
tf
.
data
.
Dataset
.
list_files
(
input_patterns
,
shuffle
=
is_training
)
if
input_pipeline_context
and
input_pipeline_context
.
num_input_pipelines
>
1
:
if
input_pipeline_context
and
input_pipeline_context
.
num_input_pipelines
>
1
:
...
...
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