dtype¶
- class
dragon.vm.torch.dtype(s)[source]¶ The basic data type.
Following data types are defined:
torch.float16ortorch.half: 16-bit half-precision floating-point.torch.float32ortorch.float: 32-bit single-precision floating-point.torch.float64ortorch.double: 64-bit double-precision floating-point.torch.bfloat16: 16-bit truncated floating-point.torch.complex32: 32-bit single-precision complex.torch.complex64: 64-bit single-precision complex.torch.complex128: 128-bit double-precision complex.torch.int8: 8-bit signed integer.torch.uint8: 8-bit unsigned integer.torch.int16ortorch.short: 16-bit signed integer.torch.int32ortorch.int: 32-bit signed integer.torch.int64ortorch.long: 64-bit signed integer.torch.bool: Boolean.torch.qint8: Quantized 8-bit signed integer.torch.quint8: Quantized 8-bit unsigned integer.torch.qint32: Quantized 32-bit signed integer.