Skip to content

Fix broken tests#192

Merged
ChrisRackauckas merged 1 commit intomasterfrom
dw/fix_tests
Dec 16, 2021
Merged

Fix broken tests#192
ChrisRackauckas merged 1 commit intomasterfrom
dw/fix_tests

Conversation

@devmotion
Copy link
Member

JuliaDiff/DiffRules.jl#73 broke the tests since, similar to polygamma the current DiffRules integration and test infrastructure can't deal with functions with two arguments of which one has to be an integer.

Ideally, this would be tested properly but this PR is a temporary solution that requires minimal changes and fixes also the downstream tests in DiffRules.

It seems one problem with these functions is that the arguments are promoted when they are forwarded to ForwardDiff since everything is packed in a static vector - in these cases it would be better to not promote and work with the DiffRules definitions directly. I wonder why this is not done already and instead ReverseDiff calls ForwardDiff?

@ChrisRackauckas
Copy link
Member

It seems one problem with these functions is that the arguments are promoted when they are forwarded to ForwardDiff since everything is packed in a static vector - in these cases it would be better to not promote and work with the DiffRules definitions directly. I wonder why this is not done already and instead ReverseDiff calls ForwardDiff?

Yeah that's odd and I don't know why, but I also know this is the right solution 😅

@ChrisRackauckas ChrisRackauckas merged commit 643b26d into master Dec 16, 2021
@ChrisRackauckas ChrisRackauckas deleted the dw/fix_tests branch December 16, 2021 15:34
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.

2 participants