Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
def
rand_shape(rank, low=1, high=10):
25
return
np.random.randint(low=1, high=10, size=rank)
26
27
28
def
rand_torch_tensor(dtype, rank):
Callers
3
rand_torch_tensor
Function · 0.85
test_tensorbatch_change_layout
Function · 0.85
test_tensorbatch_wrap_buffers
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected