-
Notifications
You must be signed in to change notification settings - Fork 62
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
Illegal type analysis in SVector \ SMatrix #1805
Labels
Comments
So it looks liek the issue here is that staticarrays is actually type unstable in this case.
This produces a union which causes us to yell. |
Could we produce a better error in this case? Or does one of the hidden flags help? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following line works in Julia:
but throws an illegal type analysis error in autodiff:
autodiff(Reverse, /, Active, Active(@SVector([0.0, 0.0, 0.0])), Active(@SMatrix([1.0])))
Versions:
Enzyme v0.12.36
StaticArrays v1.9.7
julia> versioninfo()
Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin22.4.0)
CPU: 8 × Apple M2
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
The text was updated successfully, but these errors were encountered: