Skip to content

Instantly share code, notes, and snippets.

@owulveryck
Created September 6, 2018 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owulveryck/dff38beda8ef5f8968edaecc768a8896 to your computer and use it in GitHub Desktop.
Save owulveryck/dff38beda8ef5f8968edaecc768a8896 to your computer and use it in GitHub Desktop.
Gorgonia Im2Col
Executing im2col<(3,3), (1, 1), (1,1) (1, 1)> [CPU0] CPU2 false false false. Node is: 2
Inputs:
⎡ 0 1 2 3 4⎤
⎢ 5 6 7 8 9⎥
⎢ 10 11 12 13 14⎥
⎢ 15 16 17 18 19⎥
⎣ 20 21 22 23 24⎦
Result:
⎡ 0 0 0 0 ... 0 0 0 0⎤
⎢ 0 0 0 0 ... 0 0 0 0⎥
⎢ 0 0 0 0 ... 0 0 0 0⎥
⎢ 0 0 0 0 ... 0 0 0 0⎥
⎣ 0 0 0 0 ... 0 0 0 0⎦
⎡ 0 0 0 0 ... 0 0 0 0⎤
⎢ 0 0 0 0 ... 0 0 0 0⎥
⎢ 0 0 0 0 ... 0 0 0 0⎥
⎢ 0 0 0 0 ... 1 2 3 0⎥
⎣ 5 6 7 8 ... 10 11 12 13⎦
⎡ 0 15 16 17 ... 0 20 21 22⎤
⎢ 23 0 1 2 ... 4 5 6 7⎥
⎢ 8 9 10 11 ... 13 14 15 16⎥
⎢ 17 18 19 20 ... 22 23 24 1⎥
⎣ 2 3 4 0 ... 7 8 9 0⎦
⎡ 11 12 13 14 ... 16 17 18 19⎤
⎢ 0 21 22 23 ... 0 0 5 6⎥
⎢ 7 8 0 10 ... 12 13 0 15⎥
⎢ 16 17 18 0 ... 21 22 23 0⎥
⎣ 0 0 0 0 ... 6 7 8 9⎦
⎡ 10 11 12 13 ... 15 16 17 18⎤
⎢ 19 20 21 22 ... 24 0 0 0⎥
⎢ 0 0 6 7 ... 9 0 11 12⎥
⎢ 13 14 0 16 ... 18 19 0 21⎥
⎣ 22 23 24 0 ... 0 0 0 0⎦
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment