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

fix: lambdify ComplexSqrt to TensorFlow #365

Merged
merged 9 commits into from
Dec 2, 2021

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Dec 2, 2021

JAX and TensorFlow printing is forwarded to the NumPy printer, but with jax.numpy and tensorflow.experimental.numpy as Printer._module respectively.

Other improvements:

  • Extended tests for find_function and wrote a test for lambdifying AmpForm's ComplexSqrt
  • Allow getting tensorflow.Tensor with find_function
  • Moved _backend module to function, because function is most related to back-ends.

@redeboer redeboer added the 🐛 Bug Something isn't working label Dec 2, 2021
@redeboer redeboer added this to the 0.4.0 milestone Dec 2, 2021
@redeboer redeboer self-assigned this Dec 2, 2021
@redeboer redeboer enabled auto-merge (squash) December 2, 2021 08:39
@redeboer redeboer merged commit 3e50f2d into ComPWA:main Dec 2, 2021
@redeboer redeboer deleted the custom-TensorflowPrinter branch December 2, 2021 08:40
redeboer added a commit that referenced this pull request Dec 7, 2021
* chore: define custom _TensorflowPrinter
* chore: extract _replace_module function
* chore: forward JAX ComplexSqrt printer to numpycode
* chore: move _backend to function sub-module
* feat: expand available functions in TF printer
* fix: improve find_function exception message
* fix: lambdify ComplexSqrt to TensorFlow
* test: lambdify ComplexSqrt with different backends
* test: try more functions in test_find_function
@redeboer redeboer changed the title fix: lambdify ComplexSqrt to TensorFlow fix: lambdify ComplexSqrt to TensorFlow Apr 11, 2022
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 this pull request may close these issues.

None yet

1 participant