MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / randint

Function randint

python/paddle/tensor/random.py:1733–1744  ·  view source on GitHub ↗
(
    low: int = 0,
    high: int | None = None,
    size: ShapeLike = [1],
    dtype: DTypeLike | None = None,
    name: str | None = None,
    *,
    out: Tensor | None = None,
    device: PlaceLike | None = None,
    pin_memory: bool = False,
    requires_grad: bool = False,
)

Source from the content-addressed store, hash-verified

1731
1732@overload
1733def randint(
1734 low: int = 0,
1735 high: int | None = None,
1736 size: ShapeLike = [1],
1737 dtype: DTypeLike | None = None,
1738 name: str | None = None,
1739 *,
1740 out: Tensor | None = None,
1741 device: PlaceLike | None = None,
1742 pin_memory: bool = False,
1743 requires_grad: bool = False,
1744) -> Tensor: ...
1745
1746
1747@overload

Callers

nothing calls this directly

Calls 14

append_opMethod · 0.95
use_pir_apiFunction · 0.90
_current_expected_placeFunction · 0.90
in_pir_modeFunction · 0.90
ValueErrorClass · 0.85
_get_paddle_placeFunction · 0.85
RuntimeErrorClass · 0.85
LayerHelperClass · 0.85
XPUPinnedPlaceMethod · 0.80
pin_memoryMethod · 0.80

Tested by

no test coverage detected