Skip to content

Commit

Permalink
Optimize active only rev grad (#1911)
Browse files Browse the repository at this point in the history
* Optimize active only rev grad

* Update Project.toml

* add makezero s/marray
  • Loading branch information
wsmoses authored Sep 28, 2024
1 parent 327558b commit 259f161
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ext/EnzymeStaticArraysExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,11 @@ end
end
end

@inline function Enzyme.EnzymeCore.make_zero(x::FT)::FT where {FT<:SArray}
return Base.zero(x)
end
@inline function Enzyme.EnzymeCore.make_zero(x::FT)::FT where {FT<:MArray}
return Base.zero(x)
end

end

0 comments on commit 259f161

Please sign in to comment.