MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / rand_shape

Function rand_shape

tests/cvcuda/python/test_tensor_batch.py:24–25  ·  view source on GitHub ↗
(rank, low=1, high=10)

Source from the content-addressed store, hash-verified

22
23
24def rand_shape(rank, low=1, high=10):
25 return np.random.randint(low=1, high=10, size=rank)
26
27
28def rand_torch_tensor(dtype, rank):

Callers 3

rand_torch_tensorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected