Update conv.jl
This commit is contained in:
parent
eb9b408c0f
commit
3899907164
@ -73,8 +73,8 @@ struct DepthwiseConv{N,F,A,V}
|
|||||||
pad::NTuple{N,Int}
|
pad::NTuple{N,Int}
|
||||||
end
|
end
|
||||||
|
|
||||||
DepthwiseConv(w::AbstractArray{T}, b::AbstractVector{T}, σ = identity;
|
DepthwiseConv(w::AbstractArray{T,N}, b::AbstractVector{T}, σ = identity;
|
||||||
stride = 1, pad = 0) where T =
|
stride = 1, pad = 0) where {T,N} =
|
||||||
DepthwiseConv(σ, w, b, expand.(sub2(Val(N)), (stride, pad))...)
|
DepthwiseConv(σ, w, b, expand.(sub2(Val(N)), (stride, pad))...)
|
||||||
|
|
||||||
DepthwiseConv(k::NTuple{N,Integer}, ch::Integer, σ = identity; init = initn,
|
DepthwiseConv(k::NTuple{N,Integer}, ch::Integer, σ = identity; init = initn,
|
||||||
|
Loading…
Reference in New Issue
Block a user