set_device_sat_mode
Description
Sets the process-level overflow mode for floating-point computation.
- 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
This API needs to be configured during running and called before the network script is executed.
Parent topic: npu_bridge.estimator.npu.npu_plugin