Skip to content

Add dispatch for Jax Hyp2F1 Function #1439

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ColtAllen
Copy link
Contributor

@ColtAllen ColtAllen commented Jun 2, 2025

Description

This PR adds Jax support for the Gaussian Hypergeometric function. This was added just before the latest Jax 0.6.1 release, but tests are still somehow passing for Jax 0.5.2.

Related Issue

Checklist

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

📚 Documentation preview 📚: https://pytensor--1439.org.readthedocs.build/en/1439/

@ColtAllen
Copy link
Contributor Author

From the CI run:

AttributeError: module 'jax.scipy.special' has no attribute 'hyp2f1'

Seems we'll need to update the pyproject.toml to minimally support the latest version.

@ricardoV94
Copy link
Member

ricardoV94 commented Jun 2, 2025

If it passes locally without your PR in a recent enough version of JAX we don't need to do anything, we're not testing most jax.special functions. It's enough if it has the same signature as scipy

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