Fixed type in ThresholdLayer.cu
authorSergio <sguada@gmail.com>
Tue, 27 May 2014 18:01:19 +0000 (11:01 -0700)
committerSergio <sguada@gmail.com>
Tue, 27 May 2014 18:01:19 +0000 (11:01 -0700)
src/caffe/layers/threshold_layer.cu

index 0497507..624a822 100644 (file)
@@ -11,7 +11,8 @@ using std::max;
 namespace caffe {
 
 template <typename Dtype>
-__global__ void ThresholdForward(const int n, const, threshold, const Dtype* in, Dtype* out) {
+__global__ void ThresholdForward(const int n, const Dtype threshold,
+    const Dtype* in, Dtype* out) {
   CUDA_KERNEL_LOOP(index, n) {
     out[index] = in[index] > threshold ? 1 : 0;
   }