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

Function main

samples/object_cache/basic_wrapped.py:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def main() -> None:
24 # Wrapped object that does not increase cache memory
25 torch_tensor = torch.tensor([1], device="cuda", dtype=torch.uint8)
26 cvcuda_tensor = cvcuda.as_tensor(torch_tensor, layout="N") # noqa: F841
27
28
29# docs-end: wrapped

Callers 1

basic_wrapped.pyFile · 0.70

Calls 1

tensorMethod · 0.45

Tested by

no test coverage detected