Skip to content

Commit ae5d02d

Browse files
committed
SpecialFunctions.jl autotangent
1 parent cf733cc commit ae5d02d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/rulesets/packages/SpecialFunctions.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ end
4646

4747
if isdefined(SpecialFunctions, :logabsgamma)
4848
isreal(x) || continue
49-
50-
Δx, x̄ = randn(2)
51-
Δz = Composite{Tuple{Float64, DoesNotExist}}(randn(), randn())
52-
53-
frule_test(SpecialFunctions.logabsgamma, (x, Δx))
54-
rrule_test(SpecialFunctions.logabsgamma, Δz, (x, x̄))
49+
test_frule(logabsgamma, x)
50+
test_rrule(logabsgamma, x; output_tangent=(randn(), randn()))
5551
end
5652
end
5753
end

0 commit comments

Comments
 (0)