Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions ext/VectorInterfaceEnzymeExt.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
module VectorInterfaceEnzymeExt

# COV_EXCL_START
# Enzyme rules aren't reachable by coverage
using VectorInterface
using Enzyme
using Enzyme.EnzymeCore
Expand Down Expand Up @@ -57,7 +55,7 @@ function EnzymeRules.reverse(
else
nothing
end
scale!(C.dval, conj(αval))
!isa(C, Const) && scale!(C.dval, conj(αval))
return (nothing, Δα)
end

Expand Down Expand Up @@ -121,7 +119,7 @@ function EnzymeRules.reverse(
else
nothing
end
zerovector!(C.dval)
!isa(C, Const) && zerovector!(C.dval)
return (nothing, nothing, Δα)
end

Expand Down Expand Up @@ -292,6 +290,5 @@ function EnzymeRules.forward(
return nothing
end
end
# COV_EXCL_STOP

end
Loading