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

Function create_tensor

samples/object_cache/unbounded_growth.py:25–26  ·  view source on GitHub ↗
(h: int, w: int)

Source from the content-addressed store, hash-verified

23
24
25def create_tensor(h: int, w: int) -> None:
26 _ = cvcuda.Tensor((h, w, 3), np.float32, cvcuda.TensorLayout.HWC)
27
28
29def main(iters: int = 10_000) -> None:

Callers 1

mainFunction · 0.70

Calls 1

TensorMethod · 0.45

Tested by

no test coverage detected