From 1b94df24fde6dea36d85b1ea7873a83e1a213277 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 17 Jul 2014 16:05:07 +0000
Subject: [PATCH] Midway through lots of fixes, checkpoint

---
 src/convolutional_layer.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/convolutional_layer.c b/src/convolutional_layer.c
index f473aef..7571e7a 100644
--- a/src/convolutional_layer.c
+++ b/src/convolutional_layer.c
@@ -86,7 +86,6 @@
     layer->activation = activation;
 
     fprintf(stderr, "Convolutional Layer: %d x %d x %d image, %d filters -> %d x %d x %d image\n", h,w,c,n, out_h, out_w, n);
-    srand(0);
 
     return layer;
 }
@@ -133,10 +132,15 @@
     float *a = layer.filters;
     float *b = layer.col_image;
     float *c = layer.output;
-    im2col_cpu(in,layer.batch, layer.c, layer.h, layer.w, 
+    im2col_cpu(in, layer.batch, layer.c, layer.h, layer.w, 
         layer.size, layer.stride, layer.pad, b);
     bias_output(layer);
     gemm(0,0,m,n,k,1,a,k,b,n,1,c,n);
+    /*
+    int i;
+    for(i = 0; i < m*n; ++i) printf("%f, ", layer.output[i]);
+    printf("\n");
+    */
     activate_array(layer.output, m*n, layer.activation, 0.);
 }
 

--
Gitblit v1.10.0