Skip to content
Snippets Groups Projects
Commit 8338ec0a authored by Elizabeth's avatar Elizabeth
Browse files

Deleted debug calls

parent 58499499
No related branches found
No related tags found
No related merge requests found
...@@ -13,20 +13,9 @@ ...@@ -13,20 +13,9 @@
#include "../../../tensor_runtime/include/tensor_runtime.h" #include "../../../tensor_runtime/include/tensor_runtime.h"
#include "../../include/utils.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){ 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(); 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); auto itr = total_time_energies.find(op_name);
if (itr == total_time_energies.end()){ if (itr == total_time_energies.end()){
...@@ -228,9 +217,6 @@ void testCifarNet(){ ...@@ -228,9 +217,6 @@ void testCifarNet(){
freeBatchMemory(); freeBatchMemory();
} }
} }
auto total = profiler.get_time_energy_realzzzz();
std::cout << "total = " << total.first << ", " << total.second << std::endl;
profiler.get();
profiler.stop_profiler(); profiler.stop_profiler();
stopProfiling(); stopProfiling();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment