mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed duplicate cuda_free in layer.c
This commit is contained in:
parent
2710d63257
commit
7b7940ae34
@ -31,9 +31,7 @@ void free_layer(layer l)
|
||||
if(l.weights_gpu) cuda_free(l.weights_gpu);
|
||||
if(l.weight_updates_gpu) cuda_free(l.weight_updates_gpu);
|
||||
if(l.col_image_gpu) cuda_free(l.col_image_gpu);
|
||||
if(l.weights_gpu) cuda_free(l.weights_gpu);
|
||||
if(l.biases_gpu) cuda_free(l.biases_gpu);
|
||||
if(l.weight_updates_gpu) cuda_free(l.weight_updates_gpu);
|
||||
if(l.bias_updates_gpu) cuda_free(l.bias_updates_gpu);
|
||||
if(l.output_gpu) cuda_free(l.output_gpu);
|
||||
if(l.delta_gpu) cuda_free(l.delta_gpu);
|
||||
|
Loading…
Reference in New Issue
Block a user