You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Repo Content:
1
+
# Repo Content: (Work in progress)
2
2
3
3
This repository is a porting of Ecosin Caffe Branch to Pytorch.\
4
4
If intrested there is also a Tensorflow Porting of the same code: TODO
@@ -10,11 +10,15 @@ It aim at accelerating on GPU convoluntion in context where kernels has hight sp
10
10
11
11
It Working principle are based on CSR kernel compression.
12
12
13
-
The paper that describe the SparseConvolution implementation contained in Ecosin is available at: https://arxiv.org/pdf/1802.10280.pdf\
13
+
The paper that describe the SparseConvolution implementation contained in Ecosin is available at: https://arxiv.org/pdf/1802.10280.pdf
14
+
14
15
The original C++ coda is available in the following repository:\
15
16
https://github.com/chenxuhao/caffe-escoin\
17
+
16
18
More specifically in this file: https://github.com/chenxuhao/caffe-escoin/blob/master/src/caffe/util/math_functions.cu => function caffe_gpu_sconv(...)
19
+
17
20
# How To use:
21
+
TODO => make better instructions\
18
22
To use our custom pytorch layer simply compile it with the Makefile then:\
19
23
```
20
24
import sparse_conv as sp
@@ -34,9 +38,15 @@ make all
34
38
```
35
39
- Execute the example script:
36
40
```
37
-
python main.py
41
+
python test_behaviour.py
42
+
```
43
+
- If you see as output the following all works fine.
44
+
```
45
+
Vanilla vs SparseConv:
46
+
SUCCESS => Same Outputs
47
+
IN -shape: torch.Size([1, 1, 32, 32])
48
+
OUT-shape: torch.Size([1, 6, 28, 28])
38
49
```
39
-
40
50
# How It works:
41
51
42
52
We have simply written a CUDA => python wrapper using the ctype package of python.\
0 commit comments