Skip to content

Commit d07ac0b

Browse files
authored
Merge pull request #93 from FluxML/sf/im2col_testing
Fix typo in plane size calculation
2 parents 42d9f64 + 0163bec commit d07ac0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/impl/conv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function conv2d!(y::AbstractArray{T,4}, x::AbstractArray{T,4}, w::AbstractArray{
342342
Ww, Hw = kernel_size(cdims)
343343
Wy, Hy = output_size(cdims)
344344
Cx = img_channels(cdims)
345-
M, N, K, Y = Wy*Hy, size(y,4), Ww*Hw*Cx, Wy*Hy*size(y, 4)
345+
M, N, K, Y = Wy*Hy, size(y,3), prod(size(w)[1:3]), prod(size(y)[1:3])
346346

347347
x2 = similar(x, im2col_dims(w, y))
348348
@inbounds for n in 1:size(x,4)

0 commit comments

Comments
 (0)