-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
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
Workaround for Mutating Arrays #137
Comments
y = map(1:3) do i
x[i]^2
end instead of: y = similar(x)
for i in 1:3
y[i] = x[i]^2
end |
Is there documentation for going about the first option? Since Nonconvex.jl is built on Zygote.jl, how do I specify to use ForwardDiff instead? |
Check the docs of the latest release https://julianonconvex.github.io/Nonconvex.jl/stable/gradients/other_ad/. |
I will consider this issue solved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just out of curiosity, are there any workarounds for the "cannot handle mutating arrays" issue?
I'd like to know what has already worked in the past.
The text was updated successfully, but these errors were encountered: