We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of Distributions.rand is not compatible with Zygote due to mutable operation:
function Distributions.rand(rng::Random.AbstractRNG, d::TuringMvLogNormal, n::Int) x = rand(rng, d.normal, n) map!(exp,x, x) return x end
This works with with Zygote. But I am not sure how to multiplex this for Zygote only:
function Distributions.rand(rng::Random.AbstractRNG, d::TuringMvLogNormal, n::Int) x = rand(rng, d.normal, n) xp = map(exp,x) return xp end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Implementation of Distributions.rand is not compatible with Zygote due to mutable operation:
function Distributions.rand(rng::Random.AbstractRNG, d::TuringMvLogNormal, n::Int)
x = rand(rng, d.normal, n)
map!(exp,x, x)
return x
end
This works with with Zygote. But I am not sure how to multiplex this for Zygote only:
function Distributions.rand(rng::Random.AbstractRNG, d::TuringMvLogNormal, n::Int)
x = rand(rng, d.normal, n)
xp = map(exp,x)
return xp
end
The text was updated successfully, but these errors were encountered: