mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
Merge pull request #10978 from jakevdp:x64-modf
PiperOrigin-RevId: 452867169
This commit is contained in:
commit
b665c43799
@ -591,6 +591,7 @@ def real(val):
|
||||
@jit
|
||||
def modf(x, out=None):
|
||||
_check_arraylike("modf", x)
|
||||
x, = _promote_dtypes_inexact(x)
|
||||
if out is not None:
|
||||
raise NotImplementedError("The 'out' argument to jnp.modf is not supported.")
|
||||
whole = _where(lax.ge(x, lax_internal._zero(x)), floor(x), ceil(x))
|
||||
|
Loading…
x
Reference in New Issue
Block a user