Skip to content

Conversation

@AlexRobson
Copy link
Member

@AlexRobson AlexRobson commented Jun 28, 2021

Fixes #344

There are no tests for non_differentiable as discussed in #252 . This does add a test here as it fits the criterion of either "add(ing) regression tests when we find issues with these rules / decide to add extra rules" but can just remove these tests if it's not wanted.

@AlexRobson AlexRobson changed the title No Differentiable Factorio. No Differentiable Factorial Jun 28, 2021
Copy link
Member

@mzgubic mzgubic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need the tests (since we test the macro in ChainRulesCore), and the CI already takes ~35min.

test/runtests.jl Outdated
using Base.Broadcast: broadcastable
using ChainRules
using ChainRulesCore
using ChainRulesCore: NoTangent, rrule
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
using ChainRulesCore: NoTangent, rrule

These should be exported and just work because of the line above

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool - I've removed the commit that added the tests (I was half expecting to do this anyway).

Now the changeset is just the Project.toml and adding the no diff rule.

@AlexRobson AlexRobson force-pushed the ar/no_diff_factorial branch from 8a27b2a to b473b6c Compare June 28, 2021 14:35
@mzgubic mzgubic merged commit bbb88f7 into JuliaDiff:master Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing rule for factorial

2 participants