mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
Add default shape to random.rademacher.
This commit is contained in:
parent
95ed39bfc0
commit
de8a0d3be6
@ -1860,7 +1860,7 @@ def _f(key, dfnum, dfden, shape, dtype) -> Array:
|
||||
|
||||
|
||||
def rademacher(key: KeyArrayLike,
|
||||
shape: Shape,
|
||||
shape: Shape = (),
|
||||
dtype: DTypeLikeInt = int) -> Array:
|
||||
r"""Sample from a Rademacher distribution.
|
||||
|
||||
@ -1873,7 +1873,7 @@ def rademacher(key: KeyArrayLike,
|
||||
|
||||
Args:
|
||||
key: a PRNG key.
|
||||
shape: The shape of the returned samples.
|
||||
shape: The shape of the returned samples. Default ().
|
||||
dtype: The type used for samples.
|
||||
|
||||
Returns:
|
||||
|
Loading…
x
Reference in New Issue
Block a user