Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Jan 8, 2021
1 parent 847efd2 commit 3b10434
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@ function Base.show(io::IO, l::ConvTranspose)
print(io, ")")
end

(a::ConvTranspose{<:Any,<:Any,W})(x::AbstractArray{T}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
invoke(a, Tuple{AbstractArray}, x)

(a::ConvTranspose{<:Any,<:Any,W})(x::AbstractArray{<:Real}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
a(T.(x))

function calc_padding(::Type{ConvTranspose}, pad::SamePad, k::NTuple{N,T}, dilation, stride) where {N,T}
calc_padding(Conv, pad, k .- stride .+ 1, dilation, stride)
Expand Down Expand Up @@ -358,11 +353,6 @@ 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))

"""
CrossCor(filter, in => out, σ=identity; stride=1, pad=0, dilation=1)
Expand Down Expand Up @@ -444,12 +434,6 @@ function Base.show(io::IO, l::CrossCor)
print(io, ")")
end

(a::CrossCor{<:Any,<:Any,W})(x::AbstractArray{T}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
invoke(a, Tuple{AbstractArray}, x)

(a::CrossCor{<:Any,<:Any,W})(x::AbstractArray{<:Real}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
a(T.(x))

"""
AdaptiveMaxPool(out::NTuple)
Expand Down

0 comments on commit 3b10434

Please sign in to comment.