Skip to content
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

betainc batching rule is not quite correct #6096

Closed
fehiepsi opened this issue Mar 17, 2021 · 0 comments · Fixed by #6145
Closed

betainc batching rule is not quite correct #6096

fehiepsi opened this issue Mar 17, 2021 · 0 comments · Fixed by #6145
Assignees
Labels
bug Something isn't working

Comments

@fehiepsi
Copy link
Contributor

This issue can be replicated using the following code

import jax
import jax.numpy as jnp
from jax.scipy.special import betainc

def f(x):
    return betainc(jnp.ones(3), 1., x)

assert f(jnp.ones(3)).shape == (3,)
assert jax.vmap(f)(jnp.ones((2, 3))).shape == (2, 3)
# TypeError: regularized_incomplete_beta got arrays of different rank: (2, 3), (2,), (2, 3).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants