-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make tests pass on 1.8 #1125
Make tests pass on 1.8 #1125
Conversation
test/chainrules.jl
Outdated
# broken because Zygoye compresses `(NoTangent(), NoTangent())` into just NoTangent() | ||
# which ChainRulesTestUtils does not think is valid: | ||
@test_broken(rrule_via_ad(ZygoteRuleConfig(), round, 2.2) isa Tuple{NoTangent,NoTangent}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment would be correct if
# broken because Zygoye compresses `(NoTangent(), NoTangent())` into just NoTangent() | |
# which ChainRulesTestUtils does not think is valid: | |
@test_broken(rrule_via_ad(ZygoteRuleConfig(), round, 2.2) isa Tuple{NoTangent,NoTangent}) | |
# broken because Zygoye compresses `(NoTangent(), NoTangent())` into just NoTangent() | |
# which ChainRulesTestUtils does not think is valid: | |
@test_broken(rrule_via_ad(ZygoteRuleConfig(), round, 2.2)[2](1) isa Tuple{NoTangent,NoTangent}) |
but the rrule should return a y, pb
.
In fact it looks fine below, though the rule should probably return ZeroTangent()
instead. (Not NoTangent()
since we definitely can perturb the input)
(I think we should probably just delete this line?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I've deleted it. I was just a bit puzzled by whether this was broken at some point.
test/chainrules.jl
Outdated
# Later: That makes no sense, would always be broken. If you call the pullback, | ||
# then right now Zygote agrees with the rrule, but gives 0.0 not NoTangent: | ||
rrule_via_ad(ZygoteRuleConfig(), round, 2.2)[2](1) == (NoTangent(), 0.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't this just use the rrule
under the hood anyway?
Previously,
sum(::Tuple)
hadcheck_inferred=false
but NamedTuple did not. Now both do. That was the one failing test.But some other tests marked
check_inferred=false
no longer need that. So perhaps it's a wash.Closes #1066