import torch
p_buf = torch.empty(2160, 3840, 3, dtype=torch.uint8, pin_memory=True)
arr = p_buf.numpy()
mv = memoryview(arr)
print(f"Memoryview len: {len(mv)}, shape: {arr.shape}, dtype: {arr.dtype}")
print("ALL OK!")
