Make it actually work
This commit is contained in:
parent
d91677f651
commit
14e94c291e
@ -40,7 +40,7 @@ end
|
|||||||
trainable(m) = functor(m)[1]
|
trainable(m) = functor(m)[1]
|
||||||
|
|
||||||
params!(p::Params, x::AbstractArray{<:Real}, seen = IdSet()) = push!(p, x)
|
params!(p::Params, x::AbstractArray{<:Real}, seen = IdSet()) = push!(p, x)
|
||||||
params!(p::Params, x::AbstractArray{Complex{<:Real}}, seen = IdSet()) = push!(p, x)
|
params!(p::Params, x::AbstractArray{<:Complex{<:Real}}, seen = IdSet()) = push!(p, x)
|
||||||
|
|
||||||
function params!(p::Params, x, seen = IdSet())
|
function params!(p::Params, x, seen = IdSet())
|
||||||
x in seen && return
|
x in seen && return
|
||||||
|
Loading…
Reference in New Issue
Block a user