Skip to content

Commit b979bd2

Browse files
committed
Fixed Error in src
1 parent 5449a48 commit b979bd2

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

alexnet_benchmark.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def pruning_model_random(model, px):
7878

7979
N_CLASSES = 10
8080
IMG_SIZE = 227
81-
BATCH_SIZE = 32
81+
BATCH_SIZE = 1
8282
INPUT_CHANNELS = 3
8383
PRUNING_PARAMETER = 0.90
8484

lib/sparse_conv.so

0 Bytes
Binary file not shown.

src/sparse_conv.cu

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ __global__ void sconv_batch_base(const int *rowptr, const int *colidx, const Dty
264264
#define BLOCK_SIZE 256 // 4*4*32
265265
#define WARP_SIZE 32
266266
#define VLEN 32
267-
#define OC_BLOCK 4
267+
#define OC_BLOCK 1
268268
#define DIVIDE_INTO(x,y) ((x + y - 1)/y)
269269
#define MIN(x,y) ((x < y)? x : y)
270270
#define SHMEM_SIZE 1024

0 commit comments

Comments
 (0)