mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 03:46:06 +00:00
Merge pull request #28007 from jakevdp:int-power
PiperOrigin-RevId: 747498460
This commit is contained in:
commit
d014912671
@ -2615,8 +2615,9 @@ def power(x1: ArrayLike, x2: ArrayLike, /) -> Array:
|
||||
:func:`jax.lax.integer_pow`.
|
||||
- When ``x2`` is a traced scalar or an array, ``jnp.power`` lowers to
|
||||
:func:`jax.lax.pow`.
|
||||
- ``jnp.power`` raises a ``TypeError`` for integer type raised to negative
|
||||
integer power.
|
||||
- ``jnp.power`` raises a ``TypeError`` for integer type raised to a concrete
|
||||
negative integer power. For a non-concrete power, the operation is invalid
|
||||
and the returned value is implementation-defined.
|
||||
- ``jnp.power`` returns ``nan`` for negative value raised to the power of
|
||||
non-integer values.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user