Skip to content

Commit

Permalink
Update customrules.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 6, 2024
1 parent df785e0 commit 38fcba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/customrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ function enzyme_custom_setup_args(
if cmode == API.DEM_ReverseModeGradient
cmode = API.DEM_ReverseModePrimal
end
uncacheable = Vector{UInt8}(undef, length(collect(LLVM.operands(op))) - 1)
activep =
if mode == API.DEM_ForwardMode ||
uncacheable = Vector{UInt8}(undef, length(collect(LLVM.operands(op))) - 1)
API.EnzymeGradientUtilsGetUncacheableArgs(
gutils,
op,
Expand Down

0 comments on commit 38fcba4

Please sign in to comment.