Skip to content

Commit ed806a2

Browse files
committed
Another nice test.
1 parent 02c3c9d commit ed806a2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/fusion/fuse-across-reshape5.fut

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- ==
2+
-- input { [1,2,3] [4,5,6] }
3+
-- output { [2.8284271247461903, 3.1622776601683795, 3.4641016151377544, 3.4641016151377544, 3.872983346207417, 4.242640687119285, 4.0, 4.47213595499958, 4.898979485566356] }
4+
-- structure { Screma 1 }
5+
6+
entry main A B =
7+
map (\a -> map (\b -> (a + 1) * b) B) A
8+
|> flatten
9+
|> map (f64.sqrt <-< f64.i32)

0 commit comments

Comments
 (0)