An efficient image to column algorithm for convolutional neural networks

Chunye Gong, Xinhai Chen, Shuling Lv, Jie Liu, Bo Yang, Qinglin Wang, Weimin Bao, Yufei Pang, Yang SunIJCNN 2021

Abstract

Convolutional Neural Networks (CNNs) are a class of deep neural networks. The image to column (im2col) procedure is an important step for CNN and consumes about 28.8% of the whole inference time. In this paper, we present an efficient im2col algorithm, name im2cole (word “e” means efficient). The condition with different stride and pad in im2cole is well handled and the judgements in the innermost loop are removed. The procedure with pad = 1 is split into three conditions. This will reduce the pause of CPU instruction pipeline. The performances of the presented im2cole algorithm are reported with different inputs. Some discussion and performance issues are also reported. The experimental results show that the overall performance speedup of im2cole ranges from 2.12 to 4.33 compared with the original algorithm. The real application with Darknet shows that im2cole can get 20.75% whole performance improvement.
BibTeX
@inproceedings{gong2021efficient,
  author = {Chunye Gong and Xinhai Chen and Shuling Lv and Jie Liu and Bo Yang and Qinglin Wang and Weimin Bao and Yufei Pang and Yang Sun},
  title = {{An efficient image to column algorithm for convolutional neural networks}},
  booktitle = {IJCNN},
  year = {2021},
  url = {https://openreview.net/forum?id=TPriiqtrpA},
}

Loading related content...

Figure