Skip to content

Commit

Permalink
Another compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAB committed Aug 5, 2020
1 parent 737c355 commit 14b44a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/softmax_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,9 @@ void forward_contrastive_layer(contrastive_layer l, network_state state)
}
int *labels = NULL;
if (contr_size > 2) {
cuda_push_array((contrastive_params *)l.contrast_p_gpu, (contrastive_params *)contrast_p, contr_size * sizeof(contrastive_params) / 4);
cuda_push_array((float *)l.contrast_p_gpu, (float *)contrast_p, contr_size * sizeof(contrastive_params) / 4);
P_constrastive_f_det_gpu(labels, l.embedding_size, l.temperature, l.contrast_p_gpu, contr_size);
cuda_pull_array((contrastive_params *)l.contrast_p_gpu, (contrastive_params *)contrast_p, contr_size * sizeof(contrastive_params) / 4);
cuda_pull_array((float *)l.contrast_p_gpu, (float *)contrast_p, contr_size * sizeof(contrastive_params) / 4);
}
#else // GPU
int k;
Expand Down

0 comments on commit 14b44a8

Please sign in to comment.