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
e289c8c7
Commit
e289c8c7
authored
Apr 20, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 307416709
parent
295b3b4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
official/nlp/bert/input_pipeline.py
official/nlp/bert/input_pipeline.py
+0
-1
official/nlp/bert/run_classifier.py
official/nlp/bert/run_classifier.py
+1
-1
No files found.
official/nlp/bert/input_pipeline.py
View file @
e289c8c7
...
@@ -156,7 +156,6 @@ def create_classifier_dataset(file_path,
...
@@ -156,7 +156,6 @@ def create_classifier_dataset(file_path,
'input_mask'
:
tf
.
io
.
FixedLenFeature
([
seq_length
],
tf
.
int64
),
'input_mask'
:
tf
.
io
.
FixedLenFeature
([
seq_length
],
tf
.
int64
),
'segment_ids'
:
tf
.
io
.
FixedLenFeature
([
seq_length
],
tf
.
int64
),
'segment_ids'
:
tf
.
io
.
FixedLenFeature
([
seq_length
],
tf
.
int64
),
'label_ids'
:
tf
.
io
.
FixedLenFeature
([],
tf
.
int64
),
'label_ids'
:
tf
.
io
.
FixedLenFeature
([],
tf
.
int64
),
'is_real_example'
:
tf
.
io
.
FixedLenFeature
([],
tf
.
int64
),
}
}
dataset
=
single_file_dataset
(
file_path
,
name_to_features
)
dataset
=
single_file_dataset
(
file_path
,
name_to_features
)
...
...
official/nlp/bert/run_classifier.py
View file @
e289c8c7
...
@@ -86,7 +86,7 @@ def get_dataset_fn(input_file_pattern, max_seq_length, global_batch_size,
...
@@ -86,7 +86,7 @@ def get_dataset_fn(input_file_pattern, max_seq_length, global_batch_size,
batch_size
=
ctx
.
get_per_replica_batch_size
(
batch_size
=
ctx
.
get_per_replica_batch_size
(
global_batch_size
)
if
ctx
else
global_batch_size
global_batch_size
)
if
ctx
else
global_batch_size
dataset
=
input_pipeline
.
create_classifier_dataset
(
dataset
=
input_pipeline
.
create_classifier_dataset
(
input_file_pattern
,
tf
.
io
.
gfile
.
glob
(
input_file_pattern
)
,
max_seq_length
,
max_seq_length
,
batch_size
,
batch_size
,
is_training
=
is_training
,
is_training
=
is_training
,
...
...
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