Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CVCUDA/CV-CUDA
/ test_tensor_create_packed
Function
test_tensor_create_packed
tests/cvcuda/python/test_tensor.py:291–293 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
289
290
291
def
test_tensor_create_packed():
292
tensor = cvcuda.Tensor((37, 11, 3), np.uint8, rowalign=1)
293
assert tensor.cuda().strides == (11 * 3, 3, 1)
294
295
296
def
test_tensor_create_for_imgbatch_packed():
Callers
nothing calls this directly
Calls
2
cuda
Method · 0.95
Tensor
Method · 0.45
Tested by
no test coverage detected