Merge pull request #2179 from jureviciusr/patch-1

Bad memory allocation
pull/2282/head
Alexey 6 years ago committed by GitHub
commit 55f57e9ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/network.c

@ -179,7 +179,7 @@ network make_network(int n)
network net = {0};
net.n = n;
net.layers = calloc(net.n, sizeof(layer));
net.seen = calloc(1, sizeof(int));
net.seen = calloc(1, sizeof(uint64_t));
#ifdef GPU
net.input_gpu = calloc(1, sizeof(float *));
net.truth_gpu = calloc(1, sizeof(float *));

Loading…
Cancel
Save