Added support for Float64 for DepthwiseConv
DepthwiseConv was giving errors for Float64. This fixes the issue.
This commit is contained in:
parent
d6cf116a74
commit
704be49483
@ -165,6 +165,12 @@ function Base.show(io::IO, l::DepthwiseConv)
|
||||
print(io, ")")
|
||||
end
|
||||
|
||||
(a::DepthwiseConv{<:Any,<:Any,W})(x::AbstractArray{T}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
|
||||
invoke(a, Tuple{AbstractArray}, x)
|
||||
|
||||
(a::DepthwiseConv{<:Any,<:Any,W})(x::AbstractArray{<:Real}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
|
||||
a(T.(x))
|
||||
|
||||
"""
|
||||
MaxPool(k)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user