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

Workaround mpmath 1.3 bugs in tan and tanh evaluation at infinities. Restore log1p and arctanh success tests. #20688

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

pearu
Copy link
Collaborator

@pearu pearu commented Apr 10, 2024

As in the title.

Also, restore log1p and arctanh success tests that were disabled in #20454 and #20560, respectively.

Required by openxla/xla#10525 to enable Tan unit-tests at complex infinities.

@pearu pearu requested a review from hawkinsp April 10, 2024 15:42
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Apr 11, 2024
…l absolute values

Imported from GitHub PR #10525

As in the title.

Tan evaluation is verified against mpmath tan function. The corresponding unit tests are included in xla/tests/complex_unary_op_test.cc

When jax-ml/jax#20688 lands, the follow-up PR will enable Tan tests at complex infinities.
Copybara import of the project:

--
005ff68 by Pearu Peterson <pearu.peterson@gmail.com>:

Fix tan inaccuracies on complex inputs with large and small absolute values.

--
ad3d31f by Pearu Peterson <pearu.peterson@gmail.com>:

Make generate_complex_unary_op_samples.py output clang-format stable

--
d884454 by Pearu Peterson <pearu.peterson@gmail.com>:

Add unittests for Tan with complex inputs

Merging this change closes #10525

FUTURE_COPYBARA_INTEGRATE_REVIEW=#10525 from pearu:pearu/tan d884454
PiperOrigin-RevId: 623745127
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Apr 11, 2024
…l absolute values

Imported from GitHub PR openxla/xla#10525

As in the title.

Tan evaluation is verified against mpmath tan function. The corresponding unit tests are included in xla/tests/complex_unary_op_test.cc

When jax-ml/jax#20688 lands, the follow-up PR will enable Tan tests at complex infinities.
Copybara import of the project:

--
005ff68200fe6a343c10b8e7129448dfc0d9aa57 by Pearu Peterson <pearu.peterson@gmail.com>:

Fix tan inaccuracies on complex inputs with large and small absolute values.

--
ad3d31f69fb62a9d024cf5f9011ce30fdfd4dfa4 by Pearu Peterson <pearu.peterson@gmail.com>:

Make generate_complex_unary_op_samples.py output clang-format stable

--
d88445489f525186800fb1c2a095bfca6b1de7bf by Pearu Peterson <pearu.peterson@gmail.com>:

Add unittests for Tan with complex inputs

Merging this change closes #10525

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#10525 from pearu:pearu/tan d88445489f525186800fb1c2a095bfca6b1de7bf
PiperOrigin-RevId: 623745127
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Apr 11, 2024
…l absolute values

Imported from GitHub PR #10525

As in the title.

Tan evaluation is verified against mpmath tan function. The corresponding unit tests are included in xla/tests/complex_unary_op_test.cc

When jax-ml/jax#20688 lands, the follow-up PR will enable Tan tests at complex infinities.
Copybara import of the project:

--
005ff68 by Pearu Peterson <pearu.peterson@gmail.com>:

Fix tan inaccuracies on complex inputs with large and small absolute values.

--
ad3d31f by Pearu Peterson <pearu.peterson@gmail.com>:

Make generate_complex_unary_op_samples.py output clang-format stable

--
d884454 by Pearu Peterson <pearu.peterson@gmail.com>:

Add unittests for Tan with complex inputs

Merging this change closes #10525

FUTURE_COPYBARA_INTEGRATE_REVIEW=#10525 from pearu:pearu/tan d884454
PiperOrigin-RevId: 623745127
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Apr 11, 2024
…l absolute values

Imported from GitHub PR openxla/xla#10525

As in the title.

Tan evaluation is verified against mpmath tan function. The corresponding unit tests are included in xla/tests/complex_unary_op_test.cc

When jax-ml/jax#20688 lands, the follow-up PR will enable Tan tests at complex infinities.
Copybara import of the project:

--
005ff68200fe6a343c10b8e7129448dfc0d9aa57 by Pearu Peterson <pearu.peterson@gmail.com>:

Fix tan inaccuracies on complex inputs with large and small absolute values.

--
ad3d31f69fb62a9d024cf5f9011ce30fdfd4dfa4 by Pearu Peterson <pearu.peterson@gmail.com>:

Make generate_complex_unary_op_samples.py output clang-format stable

--
d88445489f525186800fb1c2a095bfca6b1de7bf by Pearu Peterson <pearu.peterson@gmail.com>:

Add unittests for Tan with complex inputs

Merging this change closes #10525

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#10525 from pearu:pearu/tan d88445489f525186800fb1c2a095bfca6b1de7bf
PiperOrigin-RevId: 623745127
@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Apr 11, 2024
copybara-service bot pushed a commit to openxla/xla that referenced this pull request Apr 11, 2024
…l absolute values

Imported from GitHub PR #10525

As in the title.

Tan evaluation is verified against mpmath tan function. The corresponding unit tests are included in xla/tests/complex_unary_op_test.cc

When jax-ml/jax#20688 lands, the follow-up PR will enable Tan tests at complex infinities.
Copybara import of the project:

--
005ff68 by Pearu Peterson <pearu.peterson@gmail.com>:

Fix tan inaccuracies on complex inputs with large and small absolute values.

--
ad3d31f by Pearu Peterson <pearu.peterson@gmail.com>:

Make generate_complex_unary_op_samples.py output clang-format stable

--
d884454 by Pearu Peterson <pearu.peterson@gmail.com>:

Add unittests for Tan with complex inputs

Merging this change closes #10525

COPYBARA_INTEGRATE_REVIEW=#10525 from pearu:pearu/tan d884454
PiperOrigin-RevId: 623807467
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Apr 11, 2024
…l absolute values

Imported from GitHub PR openxla/xla#10525

As in the title.

Tan evaluation is verified against mpmath tan function. The corresponding unit tests are included in xla/tests/complex_unary_op_test.cc

When jax-ml/jax#20688 lands, the follow-up PR will enable Tan tests at complex infinities.
Copybara import of the project:

--
005ff68200fe6a343c10b8e7129448dfc0d9aa57 by Pearu Peterson <pearu.peterson@gmail.com>:

Fix tan inaccuracies on complex inputs with large and small absolute values.

--
ad3d31f69fb62a9d024cf5f9011ce30fdfd4dfa4 by Pearu Peterson <pearu.peterson@gmail.com>:

Make generate_complex_unary_op_samples.py output clang-format stable

--
d88445489f525186800fb1c2a095bfca6b1de7bf by Pearu Peterson <pearu.peterson@gmail.com>:

Add unittests for Tan with complex inputs

Merging this change closes #10525

PiperOrigin-RevId: 623807467
@copybara-service copybara-service bot merged commit 36bedee into jax-ml:main Apr 11, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants