Skip to content

Commit

Permalink
Test compiled only; interpreter does not support AD.
Browse files Browse the repository at this point in the history
  • Loading branch information
nhey committed Oct 12, 2023
1 parent 6a68f73 commit 3080e40
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 17 additions & 17 deletions tests/ad/reducebyindexvecmin0.fut
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
-- ==
-- entry: vecmin
-- input { [5i64, 3i64, 2i64, 4i64, 3i64, 3i64, 4i64, 2i64, 2i64, 3i64]
-- [[8i32, 5i32, -2i32, 4i32, 6i32],
-- [12i32, 8i32, 7i32, 2i32, 6i32],
-- [3i32, 9i32, -2i32, 11i32, 1i32],
-- [7i32, 3i32, 12i32, 7i32, 10i32],
-- [9i32, 12i32, 4i32, 1i32, 8i32],
-- [7i32, -1i32, 11i32, 6i32, 10i32],
-- [-2i32, 6i32, 7i32, 1i32, 12i32],
-- [8i32, 0i32, 9i32, 6i32, 7i32],
-- [7i32, 3i32, 6i32, 7i32, 8i32],
-- [1i32, 4i32, 2i32, 9i32, 9i32]]
-- [[2i32, 2i32, 2i32, 2i32, 4i32],
-- [2i32, 1i32, 3i32, 3i32, 1i32],
-- [2i32, 5i32, 2i32, 4i32, 5i32],
-- [1i32, 2i32, 1i32, 1i32, 4i32],
-- [5i32, 1i32, 4i32, 4i32, 5i32],
-- [4i32, 1i32, 4i32, 5i32, 3i32]] }
-- compiled input { [5i64, 3i64, 2i64, 4i64, 3i64, 3i64, 4i64, 2i64, 2i64, 3i64]
-- [[8i32, 5i32, -2i32, 4i32, 6i32],
-- [12i32, 8i32, 7i32, 2i32, 6i32],
-- [3i32, 9i32, -2i32, 11i32, 1i32],
-- [7i32, 3i32, 12i32, 7i32, 10i32],
-- [9i32, 12i32, 4i32, 1i32, 8i32],
-- [7i32, -1i32, 11i32, 6i32, 10i32],
-- [-2i32, 6i32, 7i32, 1i32, 12i32],
-- [8i32, 0i32, 9i32, 6i32, 7i32],
-- [7i32, 3i32, 6i32, 7i32, 8i32],
-- [1i32, 4i32, 2i32, 9i32, 9i32]]
-- [[2i32, 2i32, 2i32, 2i32, 4i32],
-- [2i32, 1i32, 3i32, 3i32, 1i32],
-- [2i32, 5i32, 2i32, 4i32, 5i32],
-- [1i32, 2i32, 1i32, 1i32, 4i32],
-- [5i32, 1i32, 4i32, 4i32, 5i32],
-- [4i32, 1i32, 4i32, 5i32, 3i32]] }
-- output { [[4i32, 1i32, 4i32, 5i32, 3i32],
-- [0i32, 0i32, 0i32, 0i32, 4i32],
-- [2i32, 0i32, 2i32, 0i32, 5i32],
Expand Down
34 changes: 17 additions & 17 deletions tests/ad/reducebyindexvecmul0.fut
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
-- ==
-- entry: vecmul
-- input { [5i64, 3i64, 2i64, 4i64, 3i64, 3i64, 4i64, 2i64, 2i64, 3i64]
-- [[8i32, 5i32, -2i32, 4i32, 6i32],
-- [12i32, 8i32, 7i32, 2i32, 6i32],
-- [3i32, 9i32, -2i32, 11i32, 1i32],
-- [7i32, 3i32, 12i32, 7i32, 10i32],
-- [9i32, 12i32, 4i32, 1i32, 8i32],
-- [7i32, -1i32, 11i32, 6i32, 10i32],
-- [-2i32, 6i32, 7i32, 1i32, 12i32],
-- [8i32, 0i32, 9i32, 6i32, 7i32],
-- [7i32, 3i32, 6i32, 7i32, 8i32],
-- [1i32, 4i32, 2i32, 9i32, 9i32]]
-- [[2i32, 2i32, 2i32, 2i32, 4i32],
-- [2i32, 1i32, 3i32, 3i32, 1i32],
-- [2i32, 5i32, 2i32, 4i32, 5i32],
-- [1i32, 2i32, 1i32, 1i32, 4i32],
-- [5i32, 1i32, 4i32, 4i32, 5i32],
-- [4i32, 1i32, 4i32, 5i32, 3i32]] }
-- compiled input { [5i64, 3i64, 2i64, 4i64, 3i64, 3i64, 4i64, 2i64, 2i64, 3i64]
-- [[8i32, 5i32, -2i32, 4i32, 6i32],
-- [12i32, 8i32, 7i32, 2i32, 6i32],
-- [3i32, 9i32, -2i32, 11i32, 1i32],
-- [7i32, 3i32, 12i32, 7i32, 10i32],
-- [9i32, 12i32, 4i32, 1i32, 8i32],
-- [7i32, -1i32, 11i32, 6i32, 10i32],
-- [-2i32, 6i32, 7i32, 1i32, 12i32],
-- [8i32, 0i32, 9i32, 6i32, 7i32],
-- [7i32, 3i32, 6i32, 7i32, 8i32],
-- [1i32, 4i32, 2i32, 9i32, 9i32]]
-- [[2i32, 2i32, 2i32, 2i32, 4i32],
-- [2i32, 1i32, 3i32, 3i32, 1i32],
-- [2i32, 5i32, 2i32, 4i32, 5i32],
-- [1i32, 2i32, 1i32, 1i32, 4i32],
-- [5i32, 1i32, 4i32, 4i32, 5i32],
-- [4i32, 1i32, 4i32, 5i32, 3i32]] }
-- output { [[4i32, 1i32, 4i32, 5i32, 3i32],
-- [63i32, -96i32, 88i32, 54i32, 2880i32],
-- [112i32, 0i32, 108i32, 168i32, 280i32],
Expand Down

0 comments on commit 3080e40

Please sign in to comment.