Commit 86204f0c authored by Adrian Kuegel's avatar Adrian Kuegel Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 265940771
parent 8a3fecc0
...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment