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
d735ecf8
Commit
d735ecf8
authored
Sep 26, 2019
by
David Chen
Committed by
A. Unique TensorFlower
Sep 26, 2019
Browse files
Internal change
PiperOrigin-RevId: 271422100
parent
127b158a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/benchmark/bert_squad_benchmark.py
official/benchmark/bert_squad_benchmark.py
+2
-2
No files found.
official/benchmark/bert_squad_benchmark.py
View file @
d735ecf8
...
...
@@ -82,7 +82,7 @@ class BertSquadBenchmarkBase(benchmark_utils.BertBenchmarkBase):
@
flagsaver
.
flagsaver
def
_train_squad
(
self
,
use_ds
=
True
,
run_eagerly
=
False
):
"""Runs BERT SQuAD training."""
tf
.
enable_v2_behavior
(
)
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
input_meta_data
=
self
.
_read_input_meta_data_from_file
()
strategy
=
self
.
_get_distribution_strategy
(
use_ds
)
...
...
@@ -95,7 +95,7 @@ class BertSquadBenchmarkBase(benchmark_utils.BertBenchmarkBase):
@
flagsaver
.
flagsaver
def
_evaluate_squad
(
self
,
use_ds
=
True
):
"""Runs BERT SQuAD evaluation."""
tf
.
enable_v2_behavior
(
)
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
input_meta_data
=
self
.
_read_input_meta_data_from_file
()
strategy
=
self
.
_get_distribution_strategy
(
use_ds
)
...
...
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