Skip to content

Commit

Permalink
Fix Tapir tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru committed Aug 13, 2024
1 parent 481b2c4 commit 381609d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/ad/chainrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ end

if @isdefined Tapir
rng = Xoshiro(123456)
Tapir.TestUtils.test_rrule!!(
rng, Bijectors.find_alpha, x, y, z; is_primitive=true, perf_flag=:none
Tapir.TestUtils.test_rule(
rng, Bijectors.find_alpha, x, y, z;
is_primitive=true, perf_flag=:none, interp=Tapir.TapirInterpreter()
)
Tapir.TestUtils.test_rrule!!(
rng, Bijectors.find_alpha, x, y, 3; is_primitive=true, perf_flag=:none
Tapir.TestUtils.test_rule(
rng, Bijectors.find_alpha, x, y, 3;
is_primitive=true, perf_flag=:none, interp=Tapir.TapirInterpreter()
)
Tapir.TestUtils.test_rrule!!(
rng, Bijectors.find_alpha, x, y, UInt32(3); is_primitive=true, perf_flag=:none
Tapir.TestUtils.test_rule(
rng, Bijectors.find_alpha, x, y, UInt32(3);
is_primitive=true, perf_flag=:none, interp=Tapir.TapirInterpreter()
)
end

Expand Down

0 comments on commit 381609d

Please sign in to comment.