unit-scaling
Contents
1. User guide
2. Limitations
3. API reference
3.1. unit_scaling
3.2. unit_scaling.analysis
3.3. unit_scaling.constraints
3.4. unit_scaling.formats
3.4.1. unit_scaling.formats.format_to_tuple
format_to_tuple()
3.4.2. unit_scaling.formats.tuple_to_format
3.4.3. unit_scaling.formats.FPFormat
3.1.22. unit_scaling.functional
3.1.23. unit_scaling.optim
3.5. unit_scaling.scale
3.6. unit_scaling.transforms
3.7. unit_scaling.transforms.utils
3.8. unit_scaling.utils
3.1.21.1. unit_scaling.core.functional
unit-scaling
3.
API reference
3.4.
unit_scaling.formats
3.4.1.
unit_scaling.formats.format_to_tuple
View page source
3.4.1.
unit_scaling.formats.format_to_tuple
unit_scaling.formats.
format_to_tuple
(
format
:
FPFormat
)
→
Tuple
[
int
,
int
]
[source]
Convert the format into a tuple of
(exponent_bits, mantissa_bits)