Skip to content

Commit

Permalink
Add another luxlib test
Browse files Browse the repository at this point in the history
  • Loading branch information
willtebbutt committed Oct 3, 2024
1 parent 2d54e51 commit 31daf96
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/ext/luxlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@
LuxLib.Utils.True(),
LuxLib.Utils.True(),
),
(
false, :none, false,
function(opmode, act, x, m, sigma2, gamma, beta)
LuxLib.Impl.batchnorm_affine_normalize_internal(
opmode, act, x, m, sigma2, gamma, beta, 1e-3
)
end,
LuxLib.LoopedArrayOp(),
Lux.relu,
randn(5, 4, 3),
randn(4),
rand(4) .+ 1.0,
nothing,
nothing,
),
],
vec(map(Iterators.product(
[LuxLib.LoopedArrayOp(), LuxLib.GenericBroadcastOp()],
Expand Down

0 comments on commit 31daf96

Please sign in to comment.