MCPcopy 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
291def 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
296def test_tensor_create_for_imgbatch_packed():

Callers

nothing calls this directly

Calls 2

cudaMethod · 0.95
TensorMethod · 0.45

Tested by

no test coverage detected