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
7bb5ab6d
Commit
7bb5ab6d
authored
Jul 08, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 320272300
parent
c96e5d5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
official/benchmark/unet3d_benchmark.py
official/benchmark/unet3d_benchmark.py
+5
-2
No files found.
official/benchmark/unet3d_benchmark.py
View file @
7bb5ab6d
...
@@ -93,8 +93,11 @@ class Unet3DAccuracyBenchmark(keras_benchmark.KerasBenchmark):
...
@@ -93,8 +93,11 @@ class Unet3DAccuracyBenchmark(keras_benchmark.KerasBenchmark):
"""Runs and reports the benchmark given the provided configuration."""
"""Runs and reports the benchmark given the provided configuration."""
params
=
unet_training_lib
.
extract_params
(
FLAGS
)
params
=
unet_training_lib
.
extract_params
(
FLAGS
)
strategy
=
unet_training_lib
.
create_distribution_strategy
(
params
)
strategy
=
unet_training_lib
.
create_distribution_strategy
(
params
)
if
params
.
use_bfloat16
:
policy
=
tf
.
keras
.
mixed_precision
.
experimental
.
Policy
(
'mixed_bfloat16'
)
input_dtype
=
params
.
dtype
if
input_dtype
==
'float16'
or
input_dtype
==
'bfloat16'
:
policy
=
tf
.
keras
.
mixed_precision
.
experimental
.
Policy
(
'mixed_bfloat16'
if
input_dtype
==
'bfloat16'
else
'mixed_float16'
)
tf
.
keras
.
mixed_precision
.
experimental
.
set_policy
(
policy
)
tf
.
keras
.
mixed_precision
.
experimental
.
set_policy
(
policy
)
stats
=
{}
stats
=
{}
...
...
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