You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the following when I combine complex numbers muladd and forward mode (I think it is forward mode because I am broadcasting some function over a vector).
I am using julia 1.9.3:
Julia Version 1.9.3
Commit bed2cd540a (2023-08-24 14:43 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 8 × Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
Threads: 1 on 8 virtual cores
And Zygote v0.6.64.
The MWE is the following:
using Zygote
functionf_no_muladd(x,a,b)
vec_res=@.real(a*exp(x+b*im))
returnsum(vec_res)
endfunctionf_muladd(x,a,b)
vec_res=@.real(a*exp(muladd(b,im,x)))
returnsum(vec_res)
end
x=ones(Float64,10);
a=1.0;
b=2.0;
Zygote.gradient(f_no_muladd,x,a,b) #completely fine
Zygote.gradient(f_muladd,x,a,b) # This call fails
Hi all,
I noticed the following when I combine complex numbers muladd and forward mode (I think it is forward mode because I am broadcasting some function over a vector).
I am using julia 1.9.3:
And Zygote v0.6.64.
The MWE is the following:
The error is actually in ForwardDiff.jl:
The text was updated successfully, but these errors were encountered: