inner product
authorYangqing Jia <jiayq84@gmail.com>
Wed, 18 Sep 2013 22:32:33 +0000 (15:32 -0700)
committerYangqing Jia <jiayq84@gmail.com>
Wed, 18 Sep 2013 22:32:33 +0000 (15:32 -0700)
src/caffeine/layers/inner_product_layer.cpp [moved from src/caffeine/layers/inner_product_layer.cu with 94% similarity]

similarity index 94%
rename from src/caffeine/layers/inner_product_layer.cu
rename to src/caffeine/layers/inner_product_layer.cpp
index 5b1124c..512f723 100644 (file)
@@ -87,18 +87,6 @@ Dtype InnerProductLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,
 }
 
 template <typename Dtype>
-__global__ void BroadcastRow(const int total, const int vec_len,
-       const Dtype* in_vec, Dtype* out_matrix) {
-  int index = threadIdx.x + blockIdx.x * blockDim.x;
-  if (index < total) {
-    int v_index = index % vec_len;
-    out_matrix[index] = in_vec[v_index];
-  }
-}
-
-
-
-template <typename Dtype>
 void InnerProductLayer<Dtype>::Forward_gpu(const vector<Blob<Dtype>*>& bottom,
     vector<Blob<Dtype>*>* top) {
   const Dtype* bottom_data = bottom[0]->gpu_data();