Skip to content

Commit ec55144

Browse files
Avik Palstaticfloat
andcommitted
Update src/pooling.jl
Co-Authored-By: staticfloat <[email protected]>
1 parent 33c3532 commit ec55144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pooling.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ for backend in (Symbol(), :_direct, :_im2col)
115115
function $(Symbol("$(name)$(backend)"))(
116116
dy::AbstractArray{T,N}, x::AbstractArray{T},
117117
pdims::PoolDims; kwargs...) where {T, N}
118-
dx = zeros(T, input_size(pdims)..., channels_out(pdims), size(dy, N))
118+
dx = zeros(T, input_size(pdims)..., channels_in(pdims), size(dy, N))
119119
return $(Symbol("$(name)$(backend)!"))(dx, dy, x, pdims; kwargs...)
120120
end
121121
end

0 commit comments

Comments
 (0)