From b642a79a8f6bef059de05f4eb66b79c6f93176e4 Mon Sep 17 00:00:00 2001 From: JEHoctor Date: Mon, 23 Jul 2018 13:45:23 -0400 Subject: [PATCH] Fix a much larger overallocation. --- examples/detector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/detector.c b/examples/detector.c index 326e07f1..754f8f8a 100644 --- a/examples/detector.c +++ b/examples/detector.c @@ -13,7 +13,7 @@ void train_detector(char *datacfg, char *cfgfile, char *weightfile, int *gpus, i char *base = basecfg(cfgfile); printf("%s\n", base); float avg_loss = -1; - network **nets = calloc(ngpus, sizeof(network)); + network **nets = calloc(ngpus, sizeof(network*)); srand(time(0)); int seed = rand();