Skip to content

Commit ecd7b09

Browse files
authored
Use better API for Enzyme.autodiff_deferred (#76)
1 parent 3ecd47a commit ecd7b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/compiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ IPUCompiler.PROGRESS_SPINNER[] = false
2121

2222
include("common.jl")
2323

24-
(f, x) = first(first(autodiff_deferred(Reverse, f, Active(x))))
24+
(f, x) = first(first(autodiff_deferred(Reverse, Const(f), Active, Active(x))))
2525

2626
# Define a non-const variable which will lead to a reference to a literal pointer in the IR
2727
# of a codelet below.

0 commit comments

Comments
 (0)