diff --git a/llvm/test/VISC/DNN_Benchmarks/common/include/tensorUtils.h b/llvm/test/VISC/DNN_Benchmarks/common/include/tensorUtils.h index 3e83c5dd891b190a436d6a004fcc2677723759bb..6dfca7fc75d6a94a9fdab15dba73111557e808fa 100644 --- a/llvm/test/VISC/DNN_Benchmarks/common/include/tensorUtils.h +++ b/llvm/test/VISC/DNN_Benchmarks/common/include/tensorUtils.h @@ -209,7 +209,7 @@ void* readInputTensor(const char* file_name, int data_type, int dim1_size, int d dim3_size, dim4_size); initTensorData(input, tensor_data, size_in_bytes); - compareValues(input, tensor_data, num_elems); + //compareValues(input, tensor_data, num_elems); return input; } @@ -249,7 +249,7 @@ struct Tensor* readTrainedWeights(const char* file_name, int data_type, int dim1 uint8_t* readLabels(const char* labels_file, int num_labels){ - int file_header_size = 8; + //int file_header_size = 8; uint8_t* labels = (uint8_t*) malloc(sizeof(uint8_t) * num_labels); FILE* file = fopen(labels_file, "rb"); if(file == NULL){ @@ -257,9 +257,9 @@ uint8_t* readLabels(const char* labels_file, int num_labels){ abort(); } - fseek(file, file_header_size, SEEK_CUR); // Skipping the file header + //fseek(file, file_header_size, SEEK_CUR); // Skipping the file header size_t bytes_read = fread(labels, 1, sizeof(uint8_t) * num_labels, file); - printf("--labels bytes_read = %zu \n", bytes_read); + printf("*Label bytes_read = %zu \n", bytes_read); return labels; }