From 2774cd86d41df2f4a5cf576a72418cadf90b4072 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 26 Nov 2015 22:40:49 +0000
Subject: [PATCH] threshs are floats

---
 src/network_kernels.cu |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/network_kernels.cu b/src/network_kernels.cu
index 8561372..26b8404 100644
--- a/src/network_kernels.cu
+++ b/src/network_kernels.cu
@@ -1,3 +1,7 @@
+#include "cuda_runtime.h"
+#include "curand.h"
+#include "cublas_v2.h"
+
 extern "C" {
 #include <stdio.h>
 #include <time.h>
@@ -19,6 +23,7 @@
 #include "avgpool_layer.h"
 #include "normalization_layer.h"
 #include "cost_layer.h"
+#include "local_layer.h"
 #include "softmax_layer.h"
 #include "dropout_layer.h"
 #include "route_layer.h"
@@ -41,6 +46,8 @@
             forward_convolutional_layer_gpu(l, state);
         } else if(l.type == DECONVOLUTIONAL){
             forward_deconvolutional_layer_gpu(l, state);
+        } else if(l.type == LOCAL){
+            forward_local_layer_gpu(l, state);
         } else if(l.type == DETECTION){
             forward_detection_layer_gpu(l, state);
         } else if(l.type == CONNECTED){
@@ -85,6 +92,8 @@
             backward_convolutional_layer_gpu(l, state);
         } else if(l.type == DECONVOLUTIONAL){
             backward_deconvolutional_layer_gpu(l, state);
+        } else if(l.type == LOCAL){
+            backward_local_layer_gpu(l, state);
         } else if(l.type == MAXPOOL){
             if(i != 0) backward_maxpool_layer_gpu(l, state);
         } else if(l.type == AVGPOOL){
@@ -120,6 +129,8 @@
             update_deconvolutional_layer_gpu(l, rate, net.momentum, net.decay);
         } else if(l.type == CONNECTED){
             update_connected_layer_gpu(l, update_batch, rate, net.momentum, net.decay);
+        } else if(l.type == LOCAL){
+            update_local_layer_gpu(l, update_batch, rate, net.momentum, net.decay);
         }
     }
 }

--
Gitblit v1.10.0