Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
rozukke committed Jul 3, 2024
1 parent 6e0527f commit fae646b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ int main(int argc, char* argv[]) {
for (int i = 0; i < input_count; i++) {
// printf("Thread %d: Processing input %d\n", omp_get_thread_num(), i);

vector* input = new_vec_aligned(TSIZE_ALGN_BYTES / sizeof(f32));
memcpy(input->data, (f32*)&tensors[TSIZE_ALGN_BYTES / sizeof(f32) * i], TSIZE_ALGN_BYTES);
vector* input = new_vec_aligned(TENSOR_SIZE);
memcpy(input->data, (f32*)&tensors[TSIZE_ALGN_BYTES / sizeof(f32) * i], TENSOR_SIZE * sizeof(f32));

#pragma omp for
for (int j = 0; j < iter_per_in - 1; j++) {
Expand Down
1 change: 0 additions & 1 deletion src/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ u8 argmax(f32* in, int len) {
return idx;
}


void transpose_mat_inplace(matrix* in) {
int cols_before = in->cols;
int rows_before = in->rows;
Expand Down

0 comments on commit fae646b

Please sign in to comment.