8000 GitHub - quarrying/diyconv: Implement convolution operator step by step
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

quarrying/diyconv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Implement convolution operator in CNN step by step for ease of understanding, regardless of efficiency.

Currently including:

  • conv2d_with_stride
  • conv2d_with_stride_padding
  • conv2d_with_stride_padding_dilation
  • conv2d_with_stride_padding_dilation_groups
    • mode='plain': plain implementation.
    • mode='im2col': use im2col borrowed from Caffe and matmul implemented by ourselves.
    • mode='im2col_v2': use im2col borrowed from Caffe and np.dot.

We also compare the results of our implementions with Pytorch's.

Dependancy

  • NumPy
  • PyTorch

Usage

mkdir -p build
cmake ..
make
cd ..
python test.py

About

Implement convolution operator step by step

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0