encoding.RoundingPolicy enum¶
Rounding and exceptional-value policy for encoded values.
Cases¶
| Keyword | Value | Description |
|---|---|---|
none |
0 | — |
nearest_even |
1 | — |
nearest_away |
2 | — |
toward_zero |
3 | — |
down |
4 | — |
up |
5 | — |
stochastic |
6 | — |
satfinite |
7 | — |
overflow_to_inf |
8 | — |
overflow_to_nan |
9 | — |
flush_subnormal |
10 | — |
preserve_subnormal |
11 | — |
relu_clamp |
12 | — |
finite_only |
13 | — |
finite_flush_subnormal |
14 | — |
Used by¶
#encoding.operand.rounding