projects
/
platform
/
upstream
/
caffe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5dd18f
)
fix im2col height/width bound check bug (issue #284 identified by
author
Jeff Donahue
<jeff.donahue@gmail.com>
Mon, 7 Apr 2014 06:53:02 +0000
(23:53 -0700)
committer
Jeff Donahue
<jeff.donahue@gmail.com>
Mon, 7 Apr 2014 06:53:02 +0000
(23:53 -0700)
@kmatzen)
src/caffe/util/im2col.cu
patch
|
blob
|
history
diff --git
a/src/caffe/util/im2col.cu
b/src/caffe/util/im2col.cu
index
28325fd
..
6aecb0e
100644
(file)
--- a/
src/caffe/util/im2col.cu
+++ b/
src/caffe/util/im2col.cu
@@
-29,7
+29,7
@@
__global__ void im2col_gpu_kernel(const int n, const Dtype* data_im,
for (int j = 0; j < ksize; ++j) {
int h = h_in + i;
int w = w_in + j;
- *data_col = (h >= 0 && w >= 0 && h <
width && w < height
) ?
+ *data_col = (h >= 0 && w >= 0 && h <
height && w < width
) ?
data_im[i * width + j] : 0;
data_col += height_col * width_col;
}