diff options
author | 2018-05-23 17:14:39 -0700 | |
---|---|---|
committer | 2018-05-23 17:17:17 -0700 | |
commit | 2307db76a2a07c7af6581e0ef4c6a5a0b83921f4 (patch) | |
tree | a056eb11e2a8698dd0a5c8eb6aa3587c0ec71ca7 /tensorflow/tools/benchmark | |
parent | dac1f124020234fe24e8893a981b15395d0c6de8 (diff) |
Refactor StatSummarizer extract common functionality without proto dependencies.
PiperOrigin-RevId: 197816405
Diffstat (limited to 'tensorflow/tools/benchmark')
-rw-r--r-- | tensorflow/tools/benchmark/benchmark_model.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/tools/benchmark/benchmark_model.cc b/tensorflow/tools/benchmark/benchmark_model.cc index eeb1fab40c..de93b12b97 100644 --- a/tensorflow/tools/benchmark/benchmark_model.cc +++ b/tensorflow/tools/benchmark/benchmark_model.cc @@ -667,12 +667,12 @@ int Main(int argc, char** argv) { output_prefix, benchmark_name, "meta-init-plus-first-inference", 1, initialization_time_s + (warmup_time_us / 1000000.0) / warmup_runs); - std::map<string, int64> node_type_map_count; - std::map<string, int64> node_type_map_time; - std::map<string, int64> node_type_map_memory; - std::map<string, int64> node_type_map_times_called; + std::map<std::string, int64_t> node_type_map_count; + std::map<std::string, int64_t> node_type_map_time; + std::map<std::string, int64_t> node_type_map_memory; + std::map<std::string, int64_t> node_type_map_times_called; - int64 accumulated_us; + int64_t accumulated_us; stats->ComputeStatsByType(&node_type_map_count, &node_type_map_time, &node_type_map_memory, &node_type_map_times_called, &accumulated_us); |