Replies: 1 comment 1 reply
-
Thanks for the report – it looks like this somehow results from calling from jax.experimental import host_callback
from jax import jit, ShapeDtypeStruct
import numpy as np
def py_func(x):
return np.finfo(x.dtype).min
@jit
def foo():
return host_callback.call(py_func, 0.0, result_shape=ShapeDtypeStruct((), 'float32'))
foo()
I'm not sure why this would be the case; perhaps @sharadmv would have a guess |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Minimal Reproducible Code:
works all great but i get this weird warning:
UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero. setattr(self, word, getattr(machar, word).flat[0])
Beta Was this translation helpful? Give feedback.
All reactions