Compare commits

...

2 Commits

Author SHA1 Message Date
2aba88536b Update tensor_attributes.rst 2025-06-16 05:45:16 -07:00
c01bfc05ea [not for land] testing from-browser docs update 2025-06-16 08:36:22 -04:00
2 changed files with 3 additions and 3 deletions

View File

@ -31,8 +31,8 @@ Data type dtype Legacy
8-bit integer (signed) ``torch.int8`` ``torch.*.CharTensor``
16-bit integer (signed) ``torch.int16`` or ``torch.short`` ``torch.*.ShortTensor``
32-bit integer (signed) ``torch.int32`` or ``torch.int`` ``torch.*.IntTensor``
64-bit integer (signed) ``torch.int64`` or ``torch.long`` ``torch.*.LongTensor``
Boolean ``torch.bool`` ``torch.*.BoolTensor``
64-bit integer (signed) ``torch.int64`` or ``torch.long``
Boolean ``torch.bool``
========================== =========================================== ===========================
.. [1] Sometimes referred to as binary16: uses 1 sign, 5 exponent, and 10

View File

@ -6,7 +6,7 @@ torch.Tensor
===================================
A :class:`torch.Tensor` is a multi-dimensional matrix containing elements of
a single data type.
a single data type. Please see :ref:`dtype-doc` for more details about dtype support.
Data types