From 248d9f179d942e379dd6d097f95a011a3b1f7e43 Mon Sep 17 00:00:00 2001 From: Joseph Redmon Date: Sat, 1 Jul 2017 01:31:38 -0700 Subject: [PATCH] :fire: :fire: MEMORY LEAK!!! :fire: :fire: --- src/region_layer.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/region_layer.c b/src/region_layer.c index 86ec4d47..4b76d5d2 100644 --- a/src/region_layer.c +++ b/src/region_layer.c @@ -526,12 +526,6 @@ void forward_region_layer_gpu(const layer l, network net) return; } - float *truth_cpu = 0; - if(net.truth_gpu){ - int num_truth = l.batch*l.truths; - truth_cpu = calloc(num_truth, sizeof(float)); - cuda_pull_array(net.truth_gpu, truth_cpu, num_truth); - } cuda_pull_array(l.output_gpu, net.input, l.batch*l.inputs); forward_region_layer(l, net); //cuda_push_array(l.output_gpu, l.output, l.batch*l.outputs);