Skip to content

Commit

Permalink
add a clarifying comment wo checking nan
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrine committed Aug 14, 2024
1 parent 3292b3b commit d33704a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/scalar/test_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def test_inner_composite(mode):
fn16 = function([n_steps, x16], y16, mode=mode)
out16 = fn16(n_steps=9, x16=np.array(4.73, dtype="float16"))
assert out16.dtype == "float16"
# with this dtype overflow happens
assert np.isnan(out16)


Expand Down

0 comments on commit d33704a

Please sign in to comment.