Skip to content

Commit 13d3cb5

Browse files
committed
Do not validate f16
1 parent 14e00f9 commit 13d3cb5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

micro/reduce_by_index.fut

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,17 @@ entry argmax_i32 [n] (k: i32) (is: [n]i32) (vs: [n]i32) : ([]i32, []i32) =
9999
|> unzip
100100

101101
-- f16 addition is not directly supported.
102+
--
103+
-- It is intentional that we do not have 'auto output' here - the
104+
-- numerical properties of half precision are so terrible that we
105+
-- cannot expect to match a sequential reference result.
102106
-- ==
103107
-- entry: sum_f16
104-
-- random input { 10 [1000000]i32 [1000000]f16 } auto output
105-
-- random input { 100 [1000000]i32 [1000000]f16 } auto output
106-
-- random input { 1000 [1000000]i32 [1000000]f16 } auto output
107-
-- random input { 10000 [1000000]i32 [1000000]f16 } auto output
108-
-- random input { 100000 [1000000]i32 [1000000]f16 } auto output
108+
-- random input { 10 [1000000]i32 [1000000]f16 }
109+
-- random input { 100 [1000000]i32 [1000000]f16 }
110+
-- random input { 1000 [1000000]i32 [1000000]f16 }
111+
-- random input { 10000 [1000000]i32 [1000000]f16 }
112+
-- random input { 100000 [1000000]i32 [1000000]f16 }
109113

110114
entry sum_f16 [n] (k: i32) (is: [n]i32) (vs: [n]f16) : []f16 =
111115
hist (+) 0 (i64.i32 k) (bins k is) vs

0 commit comments

Comments
 (0)