From d96207396f7e32c118114c78b4a0f53c2cbdcd34 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Sun, 15 Dec 2024 10:22:14 +0530 Subject: [PATCH] fix: remove old patches around reactant bug (#1135) --- Project.toml | 2 +- ext/LuxReactantExt/patches.jl | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/Project.toml b/Project.toml index 96113212a..10bad812d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Lux" uuid = "b2108857-7c20-44ae-9111-449ecde12c47" authors = ["Avik Pal and contributors"] -version = "1.4.1" +version = "1.4.2" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" diff --git a/ext/LuxReactantExt/patches.jl b/ext/LuxReactantExt/patches.jl index 0af6705e4..8b1378917 100644 --- a/ext/LuxReactantExt/patches.jl +++ b/ext/LuxReactantExt/patches.jl @@ -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