Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: FluxML/NNlib.jl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 75b42c3dbdf4cca9064793331271a334e6fd1542
Choose a base ref
..
head repository: FluxML/NNlib.jl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3a52deb9515f965da828f31ab125d15d5d727059
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/normalization.jl
4 changes: 3 additions & 1 deletion test/normalization.jl
Original file line number Diff line number Diff line change
@@ -62,7 +62,9 @@ end
(running_stats, true, y_ns, y_ns, dx_ns),
(running_stats, false, meanvar, meanvar, NoTangent()),
]
@test NNlib.maybe_norm_stats(stats, x, dims, !training)y rtol=1e-5
= NNlib.maybe_norm_stats(stats, x, dims, !training)
@test ŷ[1]y[1] rtol=1e-5
@test ŷ[2]y[2] rtol=1e-5
ŷ, back = rrule(NNlib.maybe_norm_stats, stats, x, dims, !training)
@test== y_ad
@test back(meanvar) == (NoTangent(), NoTangent(), dx, NoTangent(), NoTangent())