question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

np.exp does not return inf on overflow in fast math mode

See original GitHub issue

For example, np.exp(100) will return 100 while it should return inf.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
hawkinspcommented, Apr 30, 2019

This was fixed as part of a recent Jaxlib update (0.1.13). Let us know if you see more problems.

1reaction
hawkinspcommented, Mar 2, 2019

Note you can work around by setting the environment variable XLA_FLAGS=--xla_cpu_enable_fast_math=false.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does NumPy.exp show a different result than exp in C
The exp function in C normally doesn't take complex numbers. And how are you examining the result, anyway? Show us runnable code. –...
Read more >
How to Fix: RuntimeWarning: Overflow encountered in exp
In this article we will discuss how to fix RuntimeWarning: overflow encountered in exp in Python. This warning occurs while using the NumPy...
Read more >
What Every Computer Scientist Should Know About Floating ...
Builders of computer systems often need information about floating-point arithmetic. ... Floating-point representations are not necessarily unique.
Read more >
Mathematics - Julia Documentation
When x and y are arrays, if norm(x-y) is not finite (i.e. ±Inf or NaN ), the comparison falls back to checking whether...
Read more >
Cython for NumPy users
That is, it doesn't take your full program and “turn it into C” – rather, the result makes full use of the Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found