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
281d1757
Commit
281d1757
authored
Dec 02, 2019
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Dec 02, 2019
Browse files
Fix bug introduced.
PiperOrigin-RevId: 283447458
parent
1dffde32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
official/benchmark/bert_benchmark.py
official/benchmark/bert_benchmark.py
+8
-11
No files found.
official/benchmark/bert_benchmark.py
View file @
281d1757
...
...
@@ -32,7 +32,6 @@ import tensorflow as tf
from
official.benchmark
import
bert_benchmark_utils
as
benchmark_utils
from
official.nlp
import
bert_modeling
as
modeling
from
official.nlp.bert
import
input_pipeline
from
official.nlp.bert
import
run_classifier
from
official.utils.misc
import
distribution_utils
from
official.utils.testing
import
benchmark_wrappers
...
...
@@ -80,18 +79,16 @@ class BertClassifyBenchmarkBase(benchmark_utils.BertBenchmarkBase):
steps_per_loop
=
1
max_seq_length
=
input_meta_data
[
'max_seq_length'
]
train_input_fn
=
functools
.
partial
(
input_pipeline
.
create_classifier_dataset
,
train_input_fn
=
run_classifier
.
get_dataset_fn
(
FLAGS
.
train_data_path
,
seq_length
=
max_seq_length
,
batch_size
=
FLAGS
.
train_batch_size
)
eval_input_fn
=
functools
.
partial
(
input_
pipeline
.
create
_classifier_dataset
,
max_seq_length
,
FLAGS
.
train_batch_size
,
is_training
=
True
)
eval_
input_
fn
=
run
_classifier
.
get
_dataset
_fn
(
FLAGS
.
eval_data_path
,
seq_length
=
max_seq_length
,
batch_size
=
FLAGS
.
eval_batch_size
,
is_training
=
False
,
drop_remainder
=
False
)
max_seq_length
,
FLAGS
.
eval_batch_size
,
is_training
=
False
)
run_classifier
.
run_bert_classifier
(
strategy
,
bert_config
,
...
...
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