JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl

rand_tangent on circular structure StackOverFlows

Open
#250 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Julia
Stars
50
Forks
18
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the circular-array example in the issue and inspect the rand_tangent entry point in ChainRulesTestUtils. Trace how nested array values are traversed, then verify that the example no longer overflows the stack while ordinary tangent generation still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.