Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 297445627
  • Loading branch information
tensorflower-gardener committed Feb 26, 2020
1 parent 83f5681 commit a208dd1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions official/benchmark/tfhub_memory_usage_benchmark.py
Expand Up @@ -30,6 +30,14 @@
class TfHubMemoryUsageBenchmark(PerfZeroBenchmark):
"""A benchmark measuring memory usage for a given TF Hub SavedModel."""

def __init__(self,
output_dir=None,
default_flags=None,
root_data_dir=None,
**kwargs):
super(TfHubMemoryUsageBenchmark, self).__init__(
output_dir=output_dir, default_flags=default_flags, **kwargs)

def benchmark_memory_usage(self):
start_time_sec = time.time()
self.load_model()
Expand Down

0 comments on commit a208dd1

Please sign in to comment.