Skip to content

Commit

Permalink
[skip ci] Remove unused code in benchmark (#793)
Browse files Browse the repository at this point in the history
Signed-off-by: Cai Yudong <[email protected]>
  • Loading branch information
cydrain authored Aug 28, 2024
1 parent 6b9894f commit 131fe6d
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions benchmark/hdf5/benchmark_hdf5.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,6 @@ class Benchmark_hdf5 : public Benchmark_base {
assert(dim * 32 == dim_ || !"train dataset has incorrect dimension");
}

// if (metric_str_ == METRIC_IP_STR) {
// printf("[%.3f s] Normalizing train dataset \n", get_time_diff());
// normalize((float*)xb_, nb_, dim_);
// }

/* load test data */
printf("[%.3f s] Loading test data\n", get_time_diff());
if (!is_binary) {
Expand All @@ -147,11 +142,6 @@ class Benchmark_hdf5 : public Benchmark_base {
assert(dim * 32 == dim_ || !"test dataset has incorrect dimension");
}

// if (metric_str_ == METRIC_IP_STR) {
// printf("[%.3f s] Normalizing test dataset \n", get_time_diff());
// normalize((float*)xq_, nq_, dim_);
// }

/* load ground-truth data */
int32_t gt_nq;
printf("[%.3f s] Loading ground truth data\n", get_time_diff());
Expand Down Expand Up @@ -180,11 +170,6 @@ class Benchmark_hdf5 : public Benchmark_base {
assert(dim * 32 == dim_ || !"train dataset has incorrect dimension");
}

// if (metric_str_ == METRIC_IP_STR) {
// printf("[%.3f s] Normalizing train dataset \n", get_time_diff());
// normalize((float*)xb_, nb_, dim_);
// }

/* load test data */
printf("[%.3f s] Loading test data\n", get_time_diff());
if (!is_binary) {
Expand All @@ -195,11 +180,6 @@ class Benchmark_hdf5 : public Benchmark_base {
assert(dim * 32 == dim_ || !"test dataset has incorrect dimension");
}

// if (metric_str_ == METRIC_IP_STR) {
// printf("[%.3f s] Normalizing test dataset \n", get_time_diff());
// normalize((float*)xq_, nq_, dim_);
// }

/* load ground-truth data */
int32_t cols, rows;
printf("[%.3f s] Loading ground truth data\n", get_time_diff());
Expand Down Expand Up @@ -234,11 +214,6 @@ class Benchmark_hdf5 : public Benchmark_base {
assert(dim * 32 == dim_ || !"train dataset has incorrect dimension");
}

// if (metric_str_ == METRIC_IP_STR) {
// printf("[%.3f s] Normalizing train dataset \n", get_time_diff());
// normalize((float*)xb_, nb_, dim_);
// }

/* load test data */
printf("[%.3f s] Loading test data\n", get_time_diff());
if (!is_binary) {
Expand All @@ -249,11 +224,6 @@ class Benchmark_hdf5 : public Benchmark_base {
assert(dim * 32 == dim_ || !"test dataset has incorrect dimension");
}

// if (metric_str_ == METRIC_IP_STR) {
// printf("[%.3f s] Normalizing test dataset \n", get_time_diff());
// normalize((float*)xq_, nq_, dim_);
// }

/* load ground-truth data */
int32_t cols, rows;
printf("[%.3f s] Loading ground truth data\n", get_time_diff());
Expand Down

0 comments on commit 131fe6d

Please sign in to comment.