JuliaDiff / JuliaDiff/ChainRulesTestUtils.jl

inference check failure in test_rrule, @inferred rrule works

Open
#246 7 comments 0 reactions 1 assignee View on GitHub

@mzgubic is already working on this.

Since May 6, 2022.

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

Description

I wrapped up an MWE in ImplicitAD.jl for an rrule I defined (see the single test). My issue is that

test_rrule(one_one, 1.0;
                   check_inferred = true,
                   fdm = forward_fdm(5, 1),
                   atol = ϵ, rtol = ϵ)

gives an inference failure, while

@inferred rrule(ChainRulesTestUtils.TestConfig(), one_one, 1.0)

is fine.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.