From 8338ec0aa93831e7d33935ee02ba63b6f6f48233 Mon Sep 17 00:00:00 2001 From: Elizabeth <hashim.sharif91@gmail.com> Date: Sat, 26 Oct 2019 23:00:35 -0500 Subject: [PATCH] Deleted debug calls --- .../src/profiling/alexnet2_profiling_tensors.cc | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/profiling/alexnet2_profiling_tensors.cc b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/profiling/alexnet2_profiling_tensors.cc index e9db1ed227..f44ba60e26 100644 --- a/llvm/projects/hpvm-tensor-rt/dnn_sources/src/profiling/alexnet2_profiling_tensors.cc +++ b/llvm/projects/hpvm-tensor-rt/dnn_sources/src/profiling/alexnet2_profiling_tensors.cc @@ -13,20 +13,9 @@ #include "../../../tensor_runtime/include/tensor_runtime.h" #include "../../include/utils.h" -/* -void add_to_map(std::unordered_map<std::string, std::pair<double, double> >& total_time_energies, double data, const std::string& key){ - auto itr = total_time_energies.find(key); - if (itr == total_time_energies.end()){ - total_time_energies.insert(std::make_pair(key, data)); - } else { - itr->second += data; - } -} -*/ - void add_data(std::unordered_map<std::string, std::pair<double, double> >& total_time_energies, Profiler& profiler, const std::string& op_name){ profiler.pause_profiler(); - auto time_energy = profiler.get_time_energy_realzzzz(); + auto time_energy = profiler.get_time_energy(); auto itr = total_time_energies.find(op_name); if (itr == total_time_energies.end()){ @@ -228,9 +217,6 @@ void testCifarNet(){ freeBatchMemory(); } } - auto total = profiler.get_time_energy_realzzzz(); - std::cout << "total = " << total.first << ", " << total.second << std::endl; - profiler.get(); profiler.stop_profiler(); stopProfiling(); -- GitLab