Rate this Page

torch.Tensor.nbytes#

Tensor.nbytes#

Returns the number of bytes consumed by the “view” of elements of the Tensorif the Tensor does not use sparse storage layout.Defined to benumel() *element_size()