diff options
Diffstat (limited to 'docs/source/tensor_attributes.rst')
-rw-r--r-- | docs/source/tensor_attributes.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/source/tensor_attributes.rst b/docs/source/tensor_attributes.rst index 230b74d7dd..8233211dba 100644 --- a/docs/source/tensor_attributes.rst +++ b/docs/source/tensor_attributes.rst @@ -30,6 +30,9 @@ Data type dtype Tensor 64-bit integer (signed) ``torch.int64`` or ``torch.long`` ``torch.*.LongTensor`` ======================== =========================================== =========================== +To find out if a :class:`torch.dtype` is a floating point data type, the property :attr:`is_floating_point` +can be used, which returns ``True`` if the data type is a floating point data type. + .. _device-doc: torch.device |