Skip to content

Commit 3b10434

Browse files
rebase
1 parent 847efd2 commit 3b10434

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/layers/conv.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,6 @@ function Base.show(io::IO, l::ConvTranspose)
260260
print(io, ")")
261261
end
262262

263-
(a::ConvTranspose{<:Any,<:Any,W})(x::AbstractArray{T}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
264-
invoke(a, Tuple{AbstractArray}, x)
265-
266-
(a::ConvTranspose{<:Any,<:Any,W})(x::AbstractArray{<:Real}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
267-
a(T.(x))
268263

269264
function calc_padding(::Type{ConvTranspose}, pad::SamePad, k::NTuple{N,T}, dilation, stride) where {N,T}
270265
calc_padding(Conv, pad, k .- stride .+ 1, dilation, stride)
@@ -358,11 +353,6 @@ function Base.show(io::IO, l::DepthwiseConv)
358353
print(io, ")")
359354
end
360355

361-
(a::DepthwiseConv{<:Any,<:Any,W})(x::AbstractArray{T}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
362-
invoke(a, Tuple{AbstractArray}, x)
363-
364-
(a::DepthwiseConv{<:Any,<:Any,W})(x::AbstractArray{<:Real}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
365-
a(T.(x))
366356

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

447-
(a::CrossCor{<:Any,<:Any,W})(x::AbstractArray{T}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
448-
invoke(a, Tuple{AbstractArray}, x)
449-
450-
(a::CrossCor{<:Any,<:Any,W})(x::AbstractArray{<:Real}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
451-
a(T.(x))
452-
453437
"""
454438
AdaptiveMaxPool(out::NTuple)
455439

0 commit comments

Comments
 (0)