Skip to content

Commit

Permalink
Fix '"/*" within comment' warnings; remove instances of '//*' so as t…
Browse files Browse the repository at this point in the history
…o not confuse some syntax highlighters

Signed-off-by: Juuso Alasuutari <[email protected]>
  • Loading branch information
imaami committed Jun 24, 2020
1 parent 51d59cf commit 5963c22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/gemm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ void convolution_2d(int w, int h, int ksize, int n, int c, int pad, int stride,
}

//for (i = 0; i < w*h*c; i += 8) {
//*((__m256*)&input[i]) = _mm256_and_ps(*((__m256*)&input[i]), _mm256_castsi256_ps(all256_sing1));
//(*(__m256*)&input[i]) = _mm256_and_ps(*((__m256*)&input[i]), _mm256_castsi256_ps(all256_sing1));
//}


Expand Down Expand Up @@ -1124,7 +1124,7 @@ void convolution_2d(int w, int h, int ksize, int n, int c, int pad, int stride,

//__m256 out = *((__m256*)&output[output_index]);
//out = _mm256_add_ps(out, sum256);
//*((__m256*)&output[output_index]) = out;
//(*(__m256*)&output[output_index]) = out;
*((__m256*)&output[output_index]) = sum256;

//_mm256_storeu_ps(&C[i*ldc + j], result256);
Expand Down
10 changes: 5 additions & 5 deletions src/im2col_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ __global__ void im2col_gpu_kernel(const int n, const float* data_im,
data_im_ptr[i * width + j] : 0;

//data_im[(channel_in * height + h_in) * width + w_in + i * width + j];
//*data_col_ptr = data_im_ptr[ii * width + jj];
//(*data_col_ptr) = data_im_ptr[ii * width + jj];

data_col_ptr += height_col * width_col;
}
Expand Down Expand Up @@ -122,7 +122,7 @@ __global__ void im2col_align_gpu_kernel(const int n, const float* data_im,
*data_col_ptr = val;
//tmp_s[0] = val;
//*data_col_ptr = (h >= 0 && w >= 0 && h < height && w < width) ?
//(*data_col_ptr) = (h >= 0 && w >= 0 && h < height && w < width) ?
// data_im_ptr[i * width + j] : 0;
//float src_val = (h >= 0 && w >= 0 && h < height && w < width) ? data_im_ptr[i * width + j] : 0;
Expand Down Expand Up @@ -178,11 +178,11 @@ __global__ void im2col_align_gpu_kernel(const int n, const float* data_im,
int out_index = (channel_out + i*ksize + j) * bit_align + pre_out_index;// h_out * width_col + w_out;
data_col[out_index] = val;

//*data_col_ptr = val;
//(*data_col_ptr) = val;
//dst_s[threadIdx.x] = val;
//tmp_s[0] = val;

//*data_col_ptr = (h >= 0 && w >= 0 && h < height && w < width) ?
//(*data_col_ptr) = (h >= 0 && w >= 0 && h < height && w < width) ?
// data_im_ptr[i * width + j] : 0;

//float src_val = (h >= 0 && w >= 0 && h < height && w < width) ? data_im_ptr[i * width + j] : 0;
Expand Down Expand Up @@ -1175,7 +1175,7 @@ __global__ void gemm_nn_custom_bin_mean_transposed_gpu_kernel(int M, int N, int
//if (i_cur < M && (index % N == 0 || threadIdx.x == 0)) {
//for (int k = 0; k < K; k += 64) { // l.size*l.size*l.c - one filter size [27 - 9216]
//*((uint64_t *)(A_s + (local_i*lda + k) / 8)) = *((uint64_t *)(A + (i_cur*lda + k) / 8)); // weights
//(*(uint64_t *)(A_s + (local_i*lda + k) / 8)) = *((uint64_t *)(A + (i_cur*lda + k) / 8)); // weights
// }
//}
Expand Down
2 changes: 1 addition & 1 deletion src/yolo_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ void forward_yolo_layer(const layer l, network_state state)
if (count == 0) count = 1;
if (class_count == 0) class_count = 1;

//*(l.cost) = pow(mag_array(l.delta, l.outputs * l.batch), 2);
//(*l.cost) = pow(mag_array(l.delta, l.outputs * l.batch), 2);
//printf("Region %d Avg IOU: %f, Class: %f, Obj: %f, No Obj: %f, .5R: %f, .75R: %f, count: %d\n", state.index, avg_iou / count, avg_cat / class_count, avg_obj / count, avg_anyobj / (l.w*l.h*l.n*l.batch), recall / count, recall75 / count, count);

int stride = l.w*l.h;
Expand Down

0 comments on commit 5963c22

Please sign in to comment.