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 when range step is not 1 #1196

Closed
jgreener64 opened this issue Dec 15, 2023 · 2 comments
Closed

Error when range step is not 1 #1196

jgreener64 opened this issue Dec 15, 2023 · 2 comments

Comments

@jgreener64
Copy link
Contributor

The following errors on Enzyme main (617ecaf) and Julia 1.9.2.

using Enzyme
f(x) = sum(1.0:0.1:2.0) * x
autodiff(Reverse, f, Active, Active(2.0))

The error.txt and printall_error.txt are attached. When the step is 1.0 not 0.1 it works okay.

@vchuravy
Copy link
Member

cannot handle unknown binary operator:   %197 = and i64 %194, %196, !dbg !340


Stacktrace:
 [1] &
   @ ./int.jl:347
 [2] truncmask
   @ ./twiceprecision.jl:29
 [3] truncbits
   @ ./twiceprecision.jl:34
 [4] *
   @ ./twiceprecision.jl:314
 [5] sum
   @ ./twiceprecision.jl:620

So duplicate of #274

@jgreener64 for this we will need to define custom rules.

@wsmoses
Copy link
Member

wsmoses commented Dec 15, 2023

Yeah closing as duplicate

@wsmoses wsmoses closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2023
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

3 participants