JuliaDiff / ChainRulesTestUtils.jl

Utilities for testing custom AD primitives.
MIT License
50 stars 15 forks source link

rand_tangent on circular structure StackOverFlows #250

Open DrChainsaw opened 2 years ago

DrChainsaw commented 2 years ago
evilarray = [];

push!(evilarray, 1, evilarray)

ChainRulesTestUtils.rand_tangent(evilarray)

This can ofc be worked around in testing code but it doesn't seem hard to handle in ChainRulesTestUtils either.