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

Add missing PyTorch/JAX export for logical_or, logical_and, and relu #433

Open
wants to merge 9 commits into
base: store-options
Choose a base branch
from

Conversation

MilesCranmer
Copy link
Owner

@MilesCranmer MilesCranmer commented Sep 19, 2023

Thanks to @j-thib for pointing this out, I didn't realize the SymPy maps were not built-in.

However this gets fairly complicated as we need to map sympy.Piecewise into torch/jax code.

TODO:

  • Add sympy2torch for Piecewise
  • Add sympy2jax for Piecewise
  • Add tests for all new branches. We should reach 100% coverage on the diff because the code gets fairly convoluted.

@MilesCranmer MilesCranmer changed the title Add missing SymPy maps for logical_or, logical_and, and relu Add missing PyTorch/JAX export for logical_or, logical_and, and relu Dec 14, 2023
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.

None yet

1 participant