From e62506629eba5d68386b68f05c12bc745d0cfba3 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Tue, 7 Jan 2020 01:17:28 +0300 Subject: [PATCH] Another one compile fix --- src/shortcut_layer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shortcut_layer.c b/src/shortcut_layer.c index b7e9413a..931f394e 100644 --- a/src/shortcut_layer.c +++ b/src/shortcut_layer.c @@ -56,8 +56,8 @@ layer make_shortcut_layer(int batch, int n, int *input_layers, int* input_sizes, l.output_gpu = cuda_make_array(l.output, l.outputs*batch); l.input_sizes_gpu = cuda_make_int_array_new_api(input_sizes, l.n); - l.layers_output_gpu = cuda_make_array_pointers(layers_output_gpu, l.n); - l.layers_delta_gpu = cuda_make_array_pointers(layers_delta_gpu, l.n); + l.layers_output_gpu = cuda_make_array_pointers((void**)layers_output_gpu, l.n); + l.layers_delta_gpu = cuda_make_array_pointers((void**)layers_delta_gpu, l.n); #endif // GPU l.bflops = l.out_w * l.out_h * l.out_c * l.n / 1000000000.;