From 3b1043422495405c743206a25487cb315829eae5 Mon Sep 17 00:00:00 2001 From: Carlo Lucibello Date: Fri, 8 Jan 2021 08:34:58 +0100 Subject: [PATCH] rebase --- src/layers/conv.jl | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/layers/conv.jl b/src/layers/conv.jl index 015cdaa0e7..8724810762 100644 --- a/src/layers/conv.jl +++ b/src/layers/conv.jl @@ -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) @@ -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) @@ -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)