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
86204f0c
Commit
86204f0c
authored
Aug 28, 2019
by
Adrian Kuegel
Committed by
A. Unique TensorFlower
Aug 28, 2019
Browse files
Internal change
PiperOrigin-RevId: 265940771
parent
8a3fecc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/benchmark/keras_benchmark.py
official/benchmark/keras_benchmark.py
+3
-0
No files found.
official/benchmark/keras_benchmark.py
View file @
86204f0c
...
@@ -18,6 +18,8 @@ from __future__ import absolute_import
...
@@ -18,6 +18,8 @@ from __future__ import absolute_import
from
__future__
import
division
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
print_function
import
tensorflow
as
tf
from
official.utils.flags
import
core
as
flags_core
from
official.utils.flags
import
core
as
flags_core
from
official.utils.testing.perfzero_benchmark
import
PerfZeroBenchmark
from
official.utils.testing.perfzero_benchmark
import
PerfZeroBenchmark
...
@@ -26,6 +28,7 @@ class KerasBenchmark(PerfZeroBenchmark):
...
@@ -26,6 +28,7 @@ class KerasBenchmark(PerfZeroBenchmark):
"""Base benchmark class with methods to simplify testing."""
"""Base benchmark class with methods to simplify testing."""
def
__init__
(
self
,
output_dir
=
None
,
default_flags
=
None
,
flag_methods
=
None
):
def
__init__
(
self
,
output_dir
=
None
,
default_flags
=
None
,
flag_methods
=
None
):
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
super
(
KerasBenchmark
,
self
).
__init__
(
super
(
KerasBenchmark
,
self
).
__init__
(
output_dir
=
output_dir
,
output_dir
=
output_dir
,
default_flags
=
default_flags
,
default_flags
=
default_flags
,
...
...
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