Skip to content

Commit

Permalink
fix: remove old patches around reactant bug
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Dec 15, 2024
1 parent d5e96cd commit a3afbf8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Lux"
uuid = "b2108857-7c20-44ae-9111-449ecde12c47"
authors = ["Avik Pal <[email protected]> and contributors"]
version = "1.4.1"
version = "1.4.2"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down
6 changes: 0 additions & 6 deletions ext/LuxReactantExt/patches.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
# For some reason xlogx and xlogy with boolean inputs leads to incorrect results sometimes
# XXX: Once https://github.com/EnzymeAD/Reactant.jl/pull/278 is merged and tagged
LuxOps.xlogx(x::TracedRNumber{Bool}) = zero(x)

function LuxOps.xlogy(x::TracedRNumber, y::TracedRNumber)
return invoke(LuxOps.xlogy, Tuple{Number, Number}, float(x), float(y))
end

0 comments on commit a3afbf8

Please sign in to comment.