Closed copybara-service[bot] closed 6 days ago
Fix bug of FP numeircs.
When there is no exponent bits, e.g., e0mX, compute the maximum representable value by max subnormal instead of max normal.
Deal with overflow: clip to max subnormal at the end of round when there are no exponent bits and subnormal presents in the numerics.
Use 16-bit noise for deterministic SR tests.
Use random bits to generate stochastic rounding noise in the subnormal case, instead of using jax.random.uniform.
Cast test inputs to BF16.
Add a test case to verity e1m2 is equivalent to e0m3.
Add more tests to test_fp_round and test_fp_round_old_vs_new.
Fix bug of FP numeircs.
When there is no exponent bits, e.g., e0mX, compute the maximum representable value by max subnormal instead of max normal.
Deal with overflow: clip to max subnormal at the end of round when there are no exponent bits and subnormal presents in the numerics.
Use 16-bit noise for deterministic SR tests.
Use random bits to generate stochastic rounding noise in the subnormal case, instead of using jax.random.uniform.
Cast test inputs to BF16.
Add a test case to verity e1m2 is equivalent to e0m3.
Add more tests to test_fp_round and test_fp_round_old_vs_new.