-
Notifications
You must be signed in to change notification settings - Fork 132
Downstream #1288 #87
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
Downstream #1288 #87
Conversation
I've added some commits and a request in the upstream branch. Feel free to reply in the discussion for this PR. |
d78b793
to
3ad0c72
Compare
3ad0c72
to
f34a885
Compare
@ColtAllen There were some odd errors trying to apply the patch so not everything might be ported. Can you check what's missing? |
Looks like some |
@ColtAllen can you fix that up and take over? |
@twiecki I've forked this repo and made the revisions, but I'm blocked from pushing any commits until my permissions are updated. Shall we proceed with continuing to force-push the upstream PR, or update my permissions for this repo? |
Next steps are to get these tests passing; I could use some assistance. Here's how the tests are set up for
They are returning this jumbled error for
Here's the testing setup for the gradients Op
The last parameter for this Op is a flag indicating which variable the derivative is taken wrt, but the |
Just push to your fork and make a new PR. |
@scalar_elemwise | ||
def hyp2f1_der(a, b, c, z): | ||
"""Derivatives for Gaussian hypergeometric function.""" |
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.
You don't need to provide this as an Elemwise. It's enough to implement the Scalar Op which will be used in the gradient of hyp2f1
. We don't expect users to use this directly.
_good_broadcast_pentanary_hyp2f1_der = dict( | ||
normal=( | ||
random_ranged(0, 1000, (2, 3)), | ||
random_ranged(0, 1000, (2, 3)), | ||
random_ranged(0, 1000, (2, 3)), | ||
random_ranged(0, 0.5, (2, 3)), | ||
integers_ranged(-1, 3, (2, 3)), | ||
), | ||
) |
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.
Similarly you don't need to test this one directly, the Scalar Op will be tested in the test of the hyp2f1
@ColtAllen I left some comments above. Basically you don't need to implement the Elemwise of the derivative scalar Ops, nor test them directly. If you remove those, the important tests are passing already Feel free to push into your fork and open a PR. I'll answer any further questions you have there. |
Closing this in favor of a PR that @ColtAllen will open. |
Downstreaming aesara-devs/aesara#1288 as per request of @ColtAllen.