set_device_sat_mode
Description
Sets the process-level overflow mode for floating-point compute. Two overflow modes are supported: saturation mode and Inf/NaN mode.
- Saturation mode: When overflow occurs during compute, the compute result is saturated as the floating-point extremum (+-MAX).
- INF/NaN mode: Complies with IEEE 754 and outputs the INF/NAN compute result based on the definition.
For the
Prototype
def set_device_sat_mode(mode)
Options
Option |
Input/Output |
Description |
|---|---|---|
mode |
Input |
Specified overflow mode.
For the |
Returns
None
Restrictions
None