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

Function rand

python/paddle/tensor/random.py:2340–2349  ·  view source on GitHub ↗
(
    shape: ShapeLike,
    dtype: DTypeLike | None = None,
    name: str | None = None,
    *,
    out: paddle.Tensor | None = None,
    device: PlaceLike | None = None,
    pin_memory: bool = False,
    requires_grad: bool = False,
)

Source from the content-addressed store, hash-verified

2338
2339@overload
2340def rand(
2341 shape: ShapeLike,
2342 dtype: DTypeLike | None = None,
2343 name: str | None = None,
2344 *,
2345 out: paddle.Tensor | None = None,
2346 device: PlaceLike | None = None,
2347 pin_memory: bool = False,
2348 requires_grad: bool = False,
2349) -> Tensor: ...
2350
2351
2352@overload

Callers 15

test_conj_apiMethod · 0.90
test_conj_operatorMethod · 0.90
init_input_outputMethod · 0.90
test_basic_apiMethod · 0.90
test_VariableMethod · 0.90
test_dtypeMethod · 0.90
run_netMethod · 0.90
run_netMethod · 0.90
test_complex_xyMethod · 0.90
test_complex_x_real_yMethod · 0.90

Calls 6

_current_expected_placeFunction · 0.90
_get_paddle_placeFunction · 0.85
RuntimeErrorClass · 0.85
uniformFunction · 0.85
XPUPinnedPlaceMethod · 0.80
pin_memoryMethod · 0.80

Tested by 15

test_conj_apiMethod · 0.72
test_conj_operatorMethod · 0.72
init_input_outputMethod · 0.72
test_basic_apiMethod · 0.72
test_VariableMethod · 0.72
test_dtypeMethod · 0.72
run_netMethod · 0.72
run_netMethod · 0.72
test_complex_xyMethod · 0.72
test_complex_x_real_yMethod · 0.72