holoscan::dlpack_dtype_item_size_bytes
holoscan::dlpack_dtype_item_size_bytes
Return the number of bytes occupied by one DLPack element.
Vectorized DLPack dtypes count all lanes as one logical element, so this helper rounds the bit-lane product up to a whole number of bytes.
Returns: The number of bytes occupied by one element.
Parameters
dtype
The DLPack dtype to inspect.