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
149c6fa3
Commit
149c6fa3
authored
May 04, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 309805531
parent
31b0e518
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
official/benchmark/unet3d_benchmark.py
official/benchmark/unet3d_benchmark.py
+11
-0
No files found.
official/benchmark/unet3d_benchmark.py
View file @
149c6fa3
...
@@ -131,6 +131,17 @@ class Unet3DAccuracyBenchmark(keras_benchmark.KerasBenchmark):
...
@@ -131,6 +131,17 @@ class Unet3DAccuracyBenchmark(keras_benchmark.KerasBenchmark):
dtype
=
'bfloat16'
,
dtype
=
'bfloat16'
,
distribution_strategy
=
'tpu'
)
distribution_strategy
=
'tpu'
)
def
benchmark_4x4_tpu_bf16_mlir
(
self
):
"""Test Keras model with 4x4 TPU, fp16 and MLIR enabled."""
experiment_name
=
'benchmark_4x4_tpu_fp16_mlir'
tf
.
config
.
experimental
.
enable_mlir_bridge
()
self
.
_setup
()
self
.
_set_benchmark_parameters
(
experiment_name
)
self
.
_run_and_report_benchmark
(
experiment_name
=
experiment_name
,
dtype
=
'bfloat16'
,
distribution_strategy
=
'tpu'
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
tf
.
test
.
main
()
tf
.
test
.
main
()
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