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 5b1124c3db41218e7463e3f4722de84ec44caae3..512f723574067b96922955ba7f8528c3ab8122da 100644 (file)
@@ -86,18 +86,6 @@ Dtype InnerProductLayer<Dtype>::Backward_cpu(const vector<Blob<Dtype>*>& top,
   return Dtype(0);
 }
 
-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) {