Skip to content

Commit

Permalink
RF random_uniform doc, maxval exclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Nov 20, 2024
1 parent 8747efe commit 2d96e42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions returnn/frontend/rand.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def random(
:param int|float|Tensor|None mean:
:param int|float|Tensor|None stddev:
:param int|float|Tensor|None bound: for uniform, defining the range [-bound, bound)
:param int|float|Tensor|None minval: for uniform
:param int|float|Tensor|None maxval: for uniform
:param int|float|Tensor|None minval: for uniform, inclusive
:param int|float|Tensor|None maxval: for uniform, exclusive
:param int|list[int]|numpy.ndarray|None seed:
Only for the case ``static=True``.
If not given, uses self.network.random.randint,
Expand Down Expand Up @@ -253,6 +253,7 @@ def random_uniform(
):
"""
See :func:`random`. :func:`random` with ``distribution="uniform"``.
``maxval`` is exclusive.
"""
return random(
dims=dims,
Expand Down

0 comments on commit 2d96e42

Please sign in to comment.