mem_size

Tensor.mem_size()

Retrieves the actual allocated memory size for the tensor.

Returns:

mem_size -- The minimum memory size required to store the tensor data in bytes.

Return type:

int