Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: remove deprecated api
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jul 10, 2024
1 parent bd18f0d commit 1dac355
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/others/forwarddiff_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ end

@test_nowarn dropout(rng, x_dual, 0.5f0, Val(true), 2.0f0, :)

x_dropout = dropout(rng, x, 0.5f0, Val(true); dims=:)[1]
x_dual_dropout = ForwardDiff.value.(dropout(rng, x_dual, 0.5f0, Val(true); dims=:)[1])
x_dropout = dropout(rng, x, 0.5f0, Val(true), 2.0f0, :)[1]
x_dual_dropout = ForwardDiff.value.(dropout(
rng, x_dual, 0.5f0, Val(true), 2.0f0, :)[1])

@test check_approx(x_dropout, x_dual_dropout)
end
Expand Down

0 comments on commit 1dac355

Please sign in to comment.