check params by identity

This commit is contained in:
Mike J Innes 2018-02-14 21:00:50 +00:00
parent c1ed3e477e
commit 1b8b1cd7b1

View File

@ -37,7 +37,7 @@ function params(m)
ps = [] ps = []
prefor(p -> prefor(p ->
Tracker.istracked(p) && Tracker.isleaf(p) && Tracker.istracked(p) && Tracker.isleaf(p) &&
!(p in ps) && push!(ps, p), !any(p -> p === p, ps) && push!(ps, p),
m) m)
return ps return ps
end end