Skip to content
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

ERROR:Mutating arrays, backpass for adapt Float64 -> Float32 #43

Open
KirillZubov opened this issue Apr 13, 2021 · 1 comment
Open

ERROR:Mutating arrays, backpass for adapt Float64 -> Float32 #43

KirillZubov opened this issue Apr 13, 2021 · 1 comment

Comments

@KirillZubov
Copy link

using Zygote, Adapt #v3.3.0
f(x,p) = sum(sin.(adapt(typeof(p),x).* p))
x = [1.5,2.0]
function testf(p)
    f(x,p)
end
p = [1.5f0,2.0f0]
dp1 = Zygote.gradient(testf,p)
ERROR: Mutating arrays is not supported
@maleadt
Copy link
Member

maleadt commented Apr 14, 2021

I'm not sure what the issue is here; this MWE uses Zygote, and reports a Zygote error. Please provide an Adapt-only MWE and describe the issue / the expected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants