torch.Tensor — PyTorch 1.10.1 documentation
https://pytorch.org/docs/stable/tensorstorch.ByteTensor. /. 1. Sometimes referred to as binary16: uses 1 sign, 5 exponent, and 10 significand bits. Useful when precision is important at the expense of range. 2. Sometimes referred to as Brain Floating Point: uses 1 sign, 8 exponent, and 7 significand bits. Useful when range is important, since it has the same number of exponent bits ...
Tensor Attributes — PyTorch 1.10.1 documentation
pytorch.org › docs › stableTo find out if a torch.dtype is a complex data type, the property is_complex can be used, which returns True if the data type is a complex data type. When the dtypes of inputs to an arithmetic operation ( add , sub , div , mul ) differ, we promote by finding the minimum dtype that satisfies the following rules: