()
| 21 | |
| 22 | |
| 23 | def 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 |