From 08b757a0bf76efe8c76b453063a1bb19315bcaa6 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Wed, 14 Jan 2015 20:18:57 +0000
Subject: [PATCH] Stable, needs to be way faster

---
 src/mini_blas.c |   25 ++-----------------------
 1 files changed, 2 insertions(+), 23 deletions(-)

diff --git a/src/mini_blas.c b/src/mini_blas.c
index eb6953d..0c4c37b 100644
--- a/src/mini_blas.c
+++ b/src/mini_blas.c
@@ -17,28 +17,6 @@
     printf("\n");
 }
 
-//This one might be too, can't remember.
-void col2im_cpu(float* data_col, const int channels,
-        const int height, const int width, const int ksize, const int stride,
-        float* data_im) 
-{
-    int c,h,w;
-    int height_col = (height - ksize) / stride + 1;
-    int width_col = (width - ksize) / stride + 1;
-    int channels_col = channels * ksize * ksize;
-    for ( c = 0; c < channels_col; ++c) {
-        int w_offset = c % ksize;
-        int h_offset = (c / ksize) % ksize;
-        int c_im = c / ksize / ksize;
-        for ( h = 0; h < height_col; ++h) {
-            for ( w = 0; w < width_col; ++w) {
-                data_im[(c_im * height + h * stride + h_offset) * width
-                    + w * stride + w_offset]+= data_col[(c * height_col + h) * width_col + w];
-            }
-        }
-    }
-}
-
 float *random_matrix(int rows, int cols)
 {
     int i;
@@ -63,7 +41,7 @@
     float *c = random_matrix(m,n);
     int i;
     clock_t start = clock(), end;
-    for(i = 0; i<1000; ++i){
+    for(i = 0; i<10; ++i){
         gemm_cpu(TA,TB,m,n,k,1,a,lda,b,ldb,1,c,n);
     }
     end = clock();
@@ -75,6 +53,7 @@
 
 void test_blas()
 {
+
     time_random_matrix(0,0,100,100,100); 
     time_random_matrix(1,0,100,100,100); 
     time_random_matrix(0,1,100,100,100); 

--
Gitblit v1.10.0