Skip to content

Commit 5f5be12

Browse files
committed
add a clarifying comment to checking nan
1 parent 3292b3b commit 5f5be12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/scalar/test_loop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def test_inner_composite(mode):
215215
fn16 = function([n_steps, x16], y16, mode=mode)
216216
out16 = fn16(n_steps=9, x16=np.array(4.73, dtype="float16"))
217217
assert out16.dtype == "float16"
218+
# with this dtype overflow happens
218219
assert np.isnan(out16)
219220

220221

0 commit comments

Comments
 (0)