Convolution in Caffe

The implementation of convolution in Caffe use the matrix multiplication indeed. As described in its official website: “The Caffe strategy for convolution is to reduce the problem to matrix-matrix multiplication. This linear algebra computation is highly-tuned in BLAS libraries and efficiently computed on GPU devices.”[1]. Below is detailed info:



(those slides belongs to the creator of the Caffe: Yangqing Jia)

In Caffe, convolution is included in those files mainly: src/caffe/layers/conv_layer.cu, src/caffe/layers/base_conv_layer.cpp, src/caffe/util/math_functions.cu, src/caffe/util/in2cool.cu.

Published: November 22 2016

  • tags:
blog comments powered by Disqus