torch_frame.utils.num_bytes

num_bytes(data: Any) int[source]

Returns the number of bytes the tensor data consumes.

Parameters:

data – The tensor data.