printing ConvTranspose layer
This commit is contained in:
parent
1648414a5d
commit
ed835f26fe
@ -95,6 +95,9 @@ end
|
|||||||
|
|
||||||
function Base.show(io::IO, l::ConvTranspose)
|
function Base.show(io::IO, l::ConvTranspose)
|
||||||
print(io, "ConvTranspose(", size(l.weight)[1:ndims(l.weight)-2])
|
print(io, "ConvTranspose(", size(l.weight)[1:ndims(l.weight)-2])
|
||||||
|
print(io, ", ", size(l.weight, ndims(l.weight)), "=>", size(l.weight, ndims(l.weight)-1))
|
||||||
|
l.σ == identity || print(io, ", ", l.σ)
|
||||||
|
print(io, ")")
|
||||||
end
|
end
|
||||||
|
|
||||||
(a::ConvTranspose{<:Any,<:Any,W})(x::AbstractArray{T}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
|
(a::ConvTranspose{<:Any,<:Any,W})(x::AbstractArray{T}) where {T <: Union{Float32,Float64}, W <: AbstractArray{T}} =
|
||||||
|
Loading…
Reference in New Issue
Block a user