Skip to content
Snippets Groups Projects
Commit 60732d93 authored by Hashim Sharif's avatar Hashim Sharif
Browse files

removing unnecessary print

parent 283ca606
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,10 @@ static void addNormToResult(float comps){ ...@@ -58,7 +58,10 @@ static void addNormToResult(float comps){
static void addCompsToResult(float total_comps, float opt_comps1, float opt_comps2, float opt_comps3){ static void addCompsToResult(float total_comps,
float opt_comps1,
float opt_comps2,
float opt_comps3){
std::ostringstream ss; std::ostringstream ss;
ss << std::fixed << total_comps; ss << std::fixed << total_comps;
...@@ -160,7 +163,8 @@ void add_bias_overheads(void* input_ptr, int error_scale){ ...@@ -160,7 +163,8 @@ void add_bias_overheads(void* input_ptr, int error_scale){
double total_comps = input->num_elems; double total_comps = input->num_elems;
dumpCompOverheads(total_comps, error_scale); dumpCompOverheads(total_comps, error_scale);
}
}
void add_relu_overheads(void* input_ptr, int error_scale){ void add_relu_overheads(void* input_ptr, int error_scale){
...@@ -215,6 +219,9 @@ void add_norms(void* norms_ptr, char* op_name, int error_value){ ...@@ -215,6 +219,9 @@ void add_norms(void* norms_ptr, char* op_name, int error_value){
void dump_result(const char* file_name){ void dump_result(const char* file_name){
//printf ("DUMPING RESULT = %s \n", result_str.c_str());
//printf ("-- file name = %s \n", file_name);
FILE* fp = fopen(file_name, "w+"); FILE* fp = fopen(file_name, "w+");
if(fp != NULL){ if(fp != NULL){
fwrite(result_str.c_str(), 1, result_str.length(), fp); fwrite(result_str.c_str(), 1, result_str.length(), fp);
......
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