Update conv.jl

This commit is contained in:
Avik Pal 2018-10-11 21:39:35 +05:30 committed by GitHub
parent eb9b408c0f
commit 3899907164
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,8 +73,8 @@ struct DepthwiseConv{N,F,A,V}
pad::NTuple{N,Int}
end
DepthwiseConv(w::AbstractArray{T}, b::AbstractVector{T}, σ = identity;
stride = 1, pad = 0) where T =
DepthwiseConv(w::AbstractArray{T,N}, b::AbstractVector{T}, σ = identity;
stride = 1, pad = 0) where {T,N} =
DepthwiseConv(σ, w, b, expand.(sub2(Val(N)), (stride, pad))...)
DepthwiseConv(k::NTuple{N,Integer}, ch::Integer, σ = identity; init = initn,