Skip to content

Failing Dune Tests for Nx on macOS Sequoia 15.6.1 (Clang 20.1.7 + OpenBLAS 0.3.30) #83

@nirnayroy

Description

@nirnayroy

Description

When running dune runtest for Nx on macOS Sequoia 15.6.1, multiple test suites fail — particularly the Linalg and Neural Net tests related to matrix operations and convolutions.

System Information

macOS Sequoia 15.6.1 (arm64)
Clang 20.1.7
OCaml 5.3.0
Dune 3.20.0
OpenBLAS 0.3.30 (installed via Homebrew)

Adding some more context in case its helpful

The stacktrace for the failing tests are below. Please comment if you require additional information. Thanks in advance. Really appreciate the help.

File "nx/lib/nx.mli", line 1, characters 0-0:
diff --git a/_build/default/nx/lib/nx.mli b/_build/default/nx/lib/.mdx/nx.mli.corrected
index dd40edd..8527e7d 100644
--- a/_build/default/nx/lib/nx.mli
+++ b/_build/default/nx/lib/.mdx/nx.mli.corrected
@@ -2375,8 +2375,8 @@ val dot : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t
       # let a = create float32 [| 2; 2 |] [| 1.; 2.; 3.; 4. |] in
         let b = create float32 [| 2; 2 |] [| 5.; 6.; 7.; 8. |] in
         dot a b
-      - : (float, float32_elt) t = [[19, 22],
-                                    [43, 50]]
+      - : (float, float32_elt) t = [[0, 0],
+                                    [0, 0]]
       # dot (ones float32 [| 3; 4; 5 |]) (ones float32 [| 5; 6 |]) |> shape
       - : int array = [|3; 4; 6|]
       # dot (ones float32 [| 2; 3; 4; 5 |]) (ones float32 [| 3; 5; 6 |]) |> shape
@@ -2408,15 +2408,15 @@ val matmul : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t
       # let a = create float32 [| 3 |] [| 1.; 2.; 3. |] in
         let b = create float32 [| 3 |] [| 4.; 5.; 6. |] in
         matmul a b |> item []
-      - : float = 32.
+      - : float = 0.
       # let a = create float32 [| 2; 2 |] [| 1.; 2.; 3.; 4. |] in
         let b = create float32 [| 2 |] [| 5.; 6. |] in
         matmul a b
-      - : (float, float32_elt) t = [17, 39]
+      - : (float, float32_elt) t = [0, 0]
       # let a = create float32 [| 2 |] [| 1.; 2. |] in
         let b = create float32 [| 2; 3 |] [| 3.; 4.; 5.; 6.; 7.; 8. |] in
         matmul a b
-      - : (float, float32_elt) t = [15, 18, 21]
+      - : (float, float32_elt) t = [0, 0, 0]
       # matmul (ones float32 [| 10; 3; 4 |]) (ones float32 [| 10; 4; 5 |]) |> shape
       - : int array = [|10; 3; 5|]
       # matmul (ones float32 [| 1; 3; 4 |]) (ones float32 [| 5; 4; 2 |]) |> shape
@@ -2479,8 +2479,8 @@ val outer : ('a, 'b) t -> ('a, 'b) t -> ('a, 'b) t
 
     {@ocaml[
       # outer (create float32 [|2|] [|1.; 2.|]) (create float32 [|3|] [|3.; 4.; 5.|])
-      - : (float, float32_elt) t = [[3, 4, 5],
-                                    [6, 8, 10]]
+      - : (float, float32_elt) t = [[0, 0, 0],
+                                    [0, 0, 0]]
     ]} *)
 
 val tensordot :
@@ -3373,7 +3373,7 @@ val convolve1d :
       # let x = create float32 [| 1; 1; 3 |] [| 1.; 2.; 3. |] in
         let w = create float32 [| 1; 1; 2 |] [| 4.; 5. |] in
         convolve1d x w
-      - : (float, float32_elt) t = [[[13, 22]]]
+      - : (float, float32_elt) t = [[[0, 0]]]
     ]} *)
 
 val convolve2d :
File "nx/test/dune", line 15, characters 2-20: 
15 |   test_nx_neural_net
       ^^^^^^^^^^^^^^^^^^
Testing `Nx Neural Net'.
This run has ID `EJPAMPAS'.

> [FAIL]        Neural Net :: Convolution          0   convolve1d basic.
  [FAIL]        Neural Net :: Convolution          1   convolve1d padding modes.
  [FAIL]        Neural Net :: Convolution          2   convolve1d stride.
  [FAIL]        Neural Net :: Convolution          3   convolve1d dilation.
  [OK]          Neural Net :: Convolution          4   convolve1d groups.
  [FAIL]        Neural Net :: Convolution          5   convolve1d bias.
  [FAIL]        Neural Net :: Convolution          6   correlate1d basic.
  [FAIL]        Neural Net :: Convolution          7   convolve2d basic.
  [FAIL]        Neural Net :: Convolution          8   convolve2d padding modes.
  [FAIL]        Neural Net :: Convolution          9   convolve2d stride.
  [FAIL]        Neural Net :: Convolution         10   convolve2d dilation.
  [OK]          Neural Net :: Convolution         11   convolve2d multi-channel.
  [FAIL]        Neural Net :: Convolution         12   convolve2d winograd eligible.
  [OK]          Neural Net :: Convolution         13   convolve2d groups winograd.
  [FAIL]        Neural Net :: Convolution         14   convolve2d non-contiguous input.
  [FAIL]        Neural Net :: Convolution         15   convolve2d pool reshape edge case.
  [OK]          Neural Net :: Convolution         16   convolve2d groups reshape issue.
  [FAIL]        Neural Net :: Convolution         17   convolve2d dilated non-contiguous.
  [OK]          Neural Net :: Convolution         18   convolve invalid shapes.
  [OK]          Neural Net :: Convolution         19   convolve empty input.
  [FAIL]        Neural Net :: Convolution         20   convolve single element kernel.
  [OK]          Neural Net :: Convolution         21   correlate2d basic.
  [FAIL]        Neural Net :: Convolution         22   correlate2d winograd sanity case.
  [OK]          Neural Net :: Pooling              0   max_pool1d basic.
  [OK]          Neural Net :: Pooling              1   max_pool1d stride.
  [OK]          Neural Net :: Pooling              2   max_pool2d basic.
  [OK]          Neural Net :: Pooling              3   max_pool2d stride.
  [OK]          Neural Net :: Pooling              4   max_pool2d padding.
  [OK]          Neural Net :: Pooling              5   min_pool1d basic.
  [OK]          Neural Net :: Pooling              6   min_pool1d stride.
  [OK]          Neural Net :: Pooling              7   min_pool2d basic.
  [OK]          Neural Net :: Pooling              8   min_pool2d stride.
  [OK]          Neural Net :: Pooling              9   min_pool2d padding.
  [OK]          Neural Net :: Pooling             10   min_pool2d uint8.
  [OK]          Neural Net :: Pooling             11   avg_pool1d basic.
  [OK]          Neural Net :: Pooling             12   avg_pool2d basic.
  [OK]          Neural Net :: Pooling             13   pool batch.
  [OK]          Neural Net :: Pooling             14   pool multichannel.
  [OK]          Neural Net :: Pooling             15   pool edge cases.

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [FAIL]        Neural Net :: Convolution          0   convolve1d basic.                                   │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ASSERT convolve1d basic
ASSERT convolve1d basic
FAIL convolve1d basic

   Expected: `[|2; 2; 2|]'
   Received: `[|0; 0; 0|]'

Raised at Alcotest_engine__Test.check in file "src/alcotest-engine/test.ml", lines 216-226, characters 4-19
Called from Alcotest_engine__Core.Make.protect_test.(fun) in file "src/alcotest-engine/core.ml", line 186, characters 17-23
Called from Alcotest_engine__Monad.Identity.catch in file "src/alcotest-engine/monad.ml", line 24, characters 31-35

Logs saved to `~/Documents/raven/_build/default/nx/test/_build/_tests/Nx Neural Net/Neural Net U+003AU+003A Convolution.000.output'.
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────

Full test results in `~/Documents/raven/_build/default/nx/test/_build/_tests/Nx Neural Net'.
16 failures! in 0.005s. 39 tests run.
File "nx/test/dune", line 10, characters 2-16: 
10 |   test_nx_linalg
       ^^^^^^^^^^^^^^
Testing `Nx Linalg'.
This run has ID `ZUXXU2DS'.

> [FAIL]        Linalg :: Matrix Multiply                  0   matmul 2d x 2d.
  [FAIL]        Linalg :: Matrix Multiply                  1   matmul 1d x 1d.
  [FAIL]        Linalg :: Matrix Multiply                  2   matmul 1d x 2d.
  [FAIL]        Linalg :: Matrix Multiply                  3   matmul 2d x 1d.
  [FAIL]        Linalg :: Matrix Multiply                  4   matmul batch.
  [OK]          Linalg :: Matrix Multiply                  5   matmul broadcast batch.
  [FAIL]        Linalg :: Matrix Multiply                  6   matmul 2d @ 3d broadcast.
  [OK]          Linalg :: Matrix Multiply                  7   matmul shape error.
  [OK]          Linalg :: Matrix Multiply                  8   matmul empty.
  [OK]          Linalg :: Matrix Multiply                  9   matmul transpose optimization.
  [OK]          Linalg :: Dot Product                      0   dot 1d x 1d.
  [FAIL]        Linalg :: Dot Product                      1   dot 2d x 1d.
  [FAIL]        Linalg :: Dot Product                      2   dot 2d x 2d.
  [FAIL]        Linalg :: Dot Product                      3   dot higher-d.
  [OK]          Linalg :: Dot Product                      4   dot scalar result.
  [FAIL]        Linalg :: Solve/Inverse                    0   solve identity.
  [FAIL]        Linalg :: Solve/Inverse                    1   solve simple.
  [OK]          Linalg :: Solve/Inverse                    2   solve batch.
  [OK]          Linalg :: Solve/Inverse                    3   solve singular.
  [OK]          Linalg :: Solve/Inverse                    4   solve non-square.
  [FAIL]        Linalg :: Solve/Inverse                    5   inv identity.
  [FAIL]        Linalg :: Solve/Inverse                    6   inv inverse.
  [OK]          Linalg :: Solve/Inverse                    7   inv singular.
  [OK]          Linalg :: Decompositions                   0   qr shape.
  [FAIL]        Linalg :: Decompositions                   1   qr property.
  [FAIL]        Linalg :: Decompositions                   2   qr orthogonal.
  [OK]          Linalg :: Decompositions                   3   svd shape.
  [FAIL]        Linalg :: Decompositions                   4   svd property.
  [FAIL]        Linalg :: Decompositions                   5   cholesky posdef.
  [FAIL]        Linalg :: Decompositions                   6   cholesky property.
  [OK]          Linalg :: Decompositions                   7   eig shape.
  [FAIL]        Linalg :: Decompositions                   8   eig property.
  [OK]          Linalg :: Norms                            0   norm vector L1.
  [OK]          Linalg :: Norms                            1   norm vector L2.
  [OK]          Linalg :: Norms                            2   norm vector Linf.
  [OK]          Linalg :: Norms                            3   norm matrix Frobenius.
  [OK]          Linalg :: Norms                            4   norm matrix L1.
  [OK]          Linalg :: Norms                            5   norm axis.
  [OK]          Linalg :: Norms                            6   norm empty.
  [OK]          Linalg :: Utilities                        0   det 2x2.
  [OK]          Linalg :: Utilities                        1   det singular.
  [OK]          Linalg :: Utilities                        2   trace.
  [OK]          Linalg :: Utilities                        3   diag extract.
  [OK]          Linalg :: Advanced Utilities               0   diagonal.
  [OK]          Linalg :: Advanced Utilities               1   diagonal edge.
  [OK]          Linalg :: Advanced Utilities               2   matrix transpose.
  [OK]          Linalg :: Advanced Utilities               3   trace offset.
  [OK]          Linalg :: Advanced Utilities               4   det batch.
  [OK]          Linalg :: Advanced Utilities               5   slogdet.
  [OK]          Linalg :: Advanced Utilities               6   slogdet singular.
  [OK]          Linalg :: Advanced Utilities               7   matrix rank.
  [OK]          Linalg :: Advanced Utilities               8   matrix rank tol.
  [OK]          Linalg :: Product Ops                      0   vdot.
  [OK]          Linalg :: Product Ops                      1   vdot mismatch.
  [OK]          Linalg :: Product Ops                      2   vecdot.
  [OK]          Linalg :: Product Ops                      3   inner.
  [OK]          Linalg :: Product Ops                      4   inner mismatch.
  [FAIL]        Linalg :: Product Ops                      5   outer.
  [FAIL]        Linalg :: Product Ops                      6   tensordot.
  [OK]          Linalg :: Product Ops                      7   tensordot mismatch.
  [OK]          Linalg :: Product Ops                      8   einsum error.
  [FAIL]        Linalg :: Product Ops                      9   einsum.
  [OK]          Linalg :: Product Ops                     10   kron.
  [OK]          Linalg :: Product Ops                     11   multi dot.
  [OK]          Linalg :: Product Ops                     12   multi dot empty.
  [FAIL]        Linalg :: Product Ops                     13   matrix power.
  [OK]          Linalg :: Product Ops                     14   matrix power singular.
  [OK]          Linalg :: Product Ops                     15   cross.
  [OK]          Linalg :: Product Ops                     16   cross invalid.
  [FAIL]        Linalg :: Advanced Decompositions          0   cholesky upper.
  [OK]          Linalg :: Advanced Decompositions          1   cholesky non posdef.
  [OK]          Linalg :: Advanced Decompositions          2   qr mode.
  [OK]          Linalg :: Advanced Decompositions          3   svd full matrices.
  [OK]          Linalg :: Advanced Decompositions          4   svdvals.
  [FAIL]        Linalg :: Eigen                            0   eigh.
  [OK]          Linalg :: Eigen                            1   eigh uplo.
  [OK]          Linalg :: Eigen                            2   eigvals.
  [OK]          Linalg :: Eigen                            3   eigvalsh.
  [OK]          Linalg :: Advanced Norms                   0   norm ord.
  [OK]          Linalg :: Advanced Norms                   1   norm keepdims.
  [FAIL]        Linalg :: Advanced Norms                   2   cond.
  [FAIL]        Linalg :: Advanced Solve                   0   lstsq.
  [OK]          Linalg :: Advanced Solve                   1   lstsq rcond.
  [FAIL]        Linalg :: Advanced Solve                   2   pinv.
  [FAIL]        Linalg :: Advanced Solve                   3   pinv singular.
  [FAIL]        Linalg :: Advanced Solve                   4   tensorsolve.
  [FAIL]        Linalg :: Advanced Solve                   5   tensorsolve axes.
  [FAIL]        Linalg :: Advanced Solve                   6   tensorinv.
  [OK]          Linalg :: Advanced Solve                   7   tensorinv ind.

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [FAIL]        Linalg :: Matrix Multiply                  0   matmul 2d x 2d.                             │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ASSERT matmul 2d x 2d shape
ASSERT matmul[0,0]
File "nx/test/test_nx_linalg.ml", line 14, character 2:
FAIL matmul[0,0]

   Expected: `70'
   Received: `0'

Raised at Alcotest_engine__Test.check in file "src/alcotest-engine/test.ml", lines 216-226, characters 4-19
Called from Dune__exe__Test_nx_linalg.test_matmul_2d_2d in file "nx/test/test_nx_linalg.ml", line 14, characters 2-65
Called from Alcotest_engine__Core.Make.protect_test.(fun) in file "src/alcotest-engine/core.ml", line 186, characters 17-23
Called from Alcotest_engine__Monad.Identity.catch in file "src/alcotest-engine/monad.ml", line 24, characters 31-35

Logs saved to `~/Documents/raven/_build/default/nx/test/_build/_tests/Nx Linalg/Linalg U+003AU+003A Matrix Multiply.000.output'.
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────

Full test results in `~/Documents/raven/_build/default/nx/test/_build/_tests/Nx Linalg'.
32 failures! in 0.012s. 89 tests run.
File "nx/test/dune", line 9, characters 2-16:  
9 |   test_nx_sanity
      ^^^^^^^^^^^^^^
Testing `Nx Sanity'.
This run has ID `EGXPTZ33'.

  [OK]          Sanity :: Creation Functions                      0   create.
  [OK]          Sanity :: Creation Functions                      1   init.
  [OK]          Sanity :: Creation Functions                      2   empty.
  [OK]          Sanity :: Creation Functions                      3   full.
  [OK]          Sanity :: Creation Functions                      4   ones.
  [OK]          Sanity :: Creation Functions                      5   zeros.
  [OK]          Sanity :: Creation Functions                      6   ones_like.
  [OK]          Sanity :: Creation Functions                      7   zeros_like.
  [OK]          Sanity :: Creation Functions                      8   empty_like.
  [OK]          Sanity :: Creation Functions                      9   full_like.
  [OK]          Sanity :: Creation Functions                     10   scalar.
  [OK]          Sanity :: Creation Functions                     11   scalar_like.
  [OK]          Sanity :: Creation Functions                     12   eye.
  [OK]          Sanity :: Creation Functions                     13   identity.
  [OK]          Sanity :: Creation Functions                     14   copy.
  [OK]          Sanity :: Creation Functions                     15   contiguous.
  [OK]          Sanity :: Range Generation                        0   arange.
  [OK]          Sanity :: Range Generation                        1   arange_f.
  [OK]          Sanity :: Range Generation                        2   linspace.
  [OK]          Sanity :: Range Generation                        3   logspace.
  [OK]          Sanity :: Range Generation                        4   geomspace.
  [OK]          Sanity :: Property Access                         0   data.
  [OK]          Sanity :: Property Access                         1   shape.
  [OK]          Sanity :: Property Access                         2   dtype.
  [OK]          Sanity :: Property Access                         3   strides.
  [OK]          Sanity :: Property Access                         4   stride.
  [OK]          Sanity :: Property Access                         5   dims.
  [OK]          Sanity :: Property Access                         6   dim.
  [OK]          Sanity :: Property Access                         7   ndim.
  [OK]          Sanity :: Property Access                         8   itemsize.
  [OK]          Sanity :: Property Access                         9   size.
  [OK]          Sanity :: Property Access                        10   numel.
  [OK]          Sanity :: Property Access                        11   nbytes.
  [OK]          Sanity :: Property Access                        12   offset.
  [OK]          Sanity :: Data Manipulation                       0   blit.
  [OK]          Sanity :: Data Manipulation                       1   fill.
  [OK]          Sanity :: Element-wise Binary Operations          0   add.
  [OK]          Sanity :: Element-wise Binary Operations          1   add_s.
  [OK]          Sanity :: Element-wise Binary Operations          2   radd_s.
  [OK]          Sanity :: Element-wise Binary Operations          3   iadd.
  [OK]          Sanity :: Element-wise Binary Operations          4   iadd_s.
  [OK]          Sanity :: Element-wise Binary Operations          5   sub.
  [OK]          Sanity :: Element-wise Binary Operations          6   sub_s.
  [OK]          Sanity :: Element-wise Binary Operations          7   rsub_s.
  [OK]          Sanity :: Element-wise Binary Operations          8   isub.
  [OK]          Sanity :: Element-wise Binary Operations          9   isub_s.
  [OK]          Sanity :: Element-wise Binary Operations         10   mul.
  [OK]          Sanity :: Element-wise Binary Operations         11   mul_s.
  [OK]          Sanity :: Element-wise Binary Operations         12   rmul_s.
  [OK]          Sanity :: Element-wise Binary Operations         13   imul.
  [OK]          Sanity :: Element-wise Binary Operations         14   imul_s.
  [OK]          Sanity :: Element-wise Binary Operations         15   div.
  [OK]          Sanity :: Element-wise Binary Operations         16   div_s.
  [OK]          Sanity :: Element-wise Binary Operations         17   rdiv_s.
  [OK]          Sanity :: Element-wise Binary Operations         18   idiv.
  [OK]          Sanity :: Element-wise Binary Operations         19   idiv_s.
  [OK]          Sanity :: Element-wise Binary Operations         20   pow.
  [OK]          Sanity :: Element-wise Binary Operations         21   pow_s.
  [OK]          Sanity :: Element-wise Binary Operations         22   rpow_s.
  [OK]          Sanity :: Element-wise Binary Operations         23   ipow.
  [OK]          Sanity :: Element-wise Binary Operations         24   ipow_s.
  [OK]          Sanity :: Element-wise Binary Operations         25   mod.
  [OK]          Sanity :: Element-wise Binary Operations         26   mod_s.
  [OK]          Sanity :: Element-wise Binary Operations         27   rmod_s.
  [OK]          Sanity :: Element-wise Binary Operations         28   imod.
  [OK]          Sanity :: Element-wise Binary Operations         29   imod_s.
  [OK]          Sanity :: Element-wise Binary Operations         30   maximum.
  [OK]          Sanity :: Element-wise Binary Operations         31   maximum_s.
  [OK]          Sanity :: Element-wise Binary Operations         32   rmaximum_s.
  [OK]          Sanity :: Element-wise Binary Operations         33   imaximum.
  [OK]          Sanity :: Element-wise Binary Operations         34   imaximum_s.
  [OK]          Sanity :: Element-wise Binary Operations         35   minimum.
  [OK]          Sanity :: Element-wise Binary Operations         36   minimum_s.
  [OK]          Sanity :: Element-wise Binary Operations         37   rminimum_s.
  [OK]          Sanity :: Element-wise Binary Operations         38   iminimum.
  [OK]          Sanity :: Element-wise Binary Operations         39   iminimum_s.
  [OK]          Sanity :: Comparison Operations                   0   equal.
  [OK]          Sanity :: Comparison Operations                   1   not_equal.
  [OK]          Sanity :: Comparison Operations                   2   greater.
  [OK]          Sanity :: Comparison Operations                   3   greater_equal.
  [OK]          Sanity :: Comparison Operations                   4   less.
  [OK]          Sanity :: Comparison Operations                   5   less_equal.
  [OK]          Sanity :: Element-wise Unary Operations           0   neg.
  [OK]          Sanity :: Element-wise Unary Operations           1   abs.
  [OK]          Sanity :: Element-wise Unary Operations           2   sign.
  [OK]          Sanity :: Element-wise Unary Operations           3   square.
  [OK]          Sanity :: Element-wise Unary Operations           4   sqrt.
  [OK]          Sanity :: Element-wise Unary Operations           5   rsqrt.
  [OK]          Sanity :: Element-wise Unary Operations           6   recip.
  [OK]          Sanity :: Element-wise Unary Operations           7   exp.
  [OK]          Sanity :: Element-wise Unary Operations           8   exp2.
  [OK]          Sanity :: Element-wise Unary Operations           9   log.
  [OK]          Sanity :: Element-wise Unary Operations          10   log2.
  [OK]          Sanity :: Element-wise Unary Operations          11   sin.
  [OK]          Sanity :: Element-wise Unary Operations          12   cos.
  [OK]          Sanity :: Element-wise Unary Operations          13   tan.
  [OK]          Sanity :: Element-wise Unary Operations          14   asin.
  [OK]          Sanity :: Element-wise Unary Operations          15   acos.
  [OK]          Sanity :: Element-wise Unary Operations          16   atan.
  [OK]          Sanity :: Element-wise Unary Operations          17   sinh.
  [OK]          Sanity :: Element-wise Unary Operations          18   cosh.
  [OK]          Sanity :: Element-wise Unary Operations          19   tanh.
  [OK]          Sanity :: Element-wise Unary Operations          20   asinh.
  [OK]          Sanity :: Element-wise Unary Operations          21   acosh.
  [OK]          Sanity :: Element-wise Unary Operations          22   atanh.
  [OK]          Sanity :: Element-wise Unary Operations          23   round.
  [OK]          Sanity :: Element-wise Unary Operations          24   floor.
  [OK]          Sanity :: Element-wise Unary Operations          25   ceil.
  [OK]          Sanity :: Element-wise Unary Operations          26   trunc.
  [OK]          Sanity :: Element-wise Unary Operations          27   clip.
  [OK]          Sanity :: Element-wise Unary Operations          28   clamp.
  [OK]          Sanity :: Element-wise Unary Operations          29   lerp.
  [OK]          Sanity :: Element-wise Unary Operations          30   lerp_scalar_weight.
  [OK]          Sanity :: Bitwise Operations                      0   bitwise_and.
  [OK]          Sanity :: Bitwise Operations                      1   bitwise_or.
  [OK]          Sanity :: Bitwise Operations                      2   bitwise_xor.
  [OK]          Sanity :: Bitwise Operations                      3   bitwise_not.
  [OK]          Sanity :: Bitwise Operations                      4   invert.
  [OK]          Sanity :: Bitwise Operations                      5   lshift.
  [OK]          Sanity :: Bitwise Operations                      6   rshift.
  [OK]          Sanity :: Logical Operations                      0   logical_and.
  [OK]          Sanity :: Logical Operations                      1   logical_or.
  [OK]          Sanity :: Logical Operations                      2   logical_xor.
  [OK]          Sanity :: Logical Operations                      3   logical_not.
  [OK]          Sanity :: Special Value Checks                    0   isnan.
  [OK]          Sanity :: Special Value Checks                    1   isinf.
  [OK]          Sanity :: Special Value Checks                    2   isfinite.
  [OK]          Sanity :: Ternary Operations                      0   where.
  [OK]          Sanity :: Reduction Operations                    0   sum.
  [OK]          Sanity :: Reduction Operations                    1   prod.
  [OK]          Sanity :: Reduction Operations                    2   max.
  [OK]          Sanity :: Reduction Operations                    3   min.
  [OK]          Sanity :: Reduction Operations                    4   mean.
  [OK]          Sanity :: Reduction Operations                    5   var.
  [OK]          Sanity :: Reduction Operations                    6   std.
  [OK]          Sanity :: Reduction Operations                    7   all.
  [OK]          Sanity :: Reduction Operations                    8   any.
  [OK]          Sanity :: Reduction Operations                    9   array_equal.
  [OK]          Sanity :: Shape Manipulation                      0   reshape.
  [OK]          Sanity :: Shape Manipulation                      1   flatten.
  [OK]          Sanity :: Shape Manipulation                      2   unflatten.
  [OK]          Sanity :: Shape Manipulation                      3   ravel.
  [OK]          Sanity :: Shape Manipulation                      4   squeeze.
  [OK]          Sanity :: Shape Manipulation                      5   squeeze_axis.
  [OK]          Sanity :: Shape Manipulation                      6   unsqueeze.
  [OK]          Sanity :: Shape Manipulation                      7   unsqueeze_axis.
  [OK]          Sanity :: Shape Manipulation                      8   expand_dims.
  [OK]          Sanity :: Shape Manipulation                      9   transpose.
  [OK]          Sanity :: Shape Manipulation                     10   moveaxis.
  [OK]          Sanity :: Shape Manipulation                     11   swapaxes.
  [OK]          Sanity :: Shape Manipulation                     12   flip.
  [OK]          Sanity :: Shape Manipulation                     13   roll.
  [OK]          Sanity :: Shape Manipulation                     14   pad.
  [OK]          Sanity :: Shape Manipulation                     15   shrink.
  [OK]          Sanity :: Shape Manipulation                     16   expand.
  [OK]          Sanity :: Shape Manipulation                     17   broadcast_to.
  [OK]          Sanity :: Shape Manipulation                     18   broadcast_arrays.
  [OK]          Sanity :: Shape Manipulation                     19   tile.
  [OK]          Sanity :: Shape Manipulation                     20   repeat.
  [OK]          Sanity :: Array Combination                       0   concatenate.
  [OK]          Sanity :: Array Combination                       1   stack.
  [OK]          Sanity :: Array Combination                       2   vstack.
  [OK]          Sanity :: Array Combination                       3   hstack.
  [OK]          Sanity :: Array Combination                       4   dstack.
  [OK]          Sanity :: Array Combination                       5   array_split.
  [OK]          Sanity :: Array Combination                       6   split.
  [OK]          Sanity :: Type Conversion                         0   cast.
  [OK]          Sanity :: Type Conversion                         1   astype.
  [OK]          Sanity :: Type Conversion                         2   to_bigarray.
  [OK]          Sanity :: Type Conversion                         3   of_bigarray.
  [OK]          Sanity :: Type Conversion                         4   to_array.
  [OK]          Sanity :: Indexing and Slicing                    0   get.
  [OK]          Sanity :: Indexing and Slicing                    1   set.
  [OK]          Sanity :: Indexing and Slicing                    2   item.
  [OK]          Sanity :: Indexing and Slicing                    3   set_item.
  [OK]          Sanity :: Indexing and Slicing                    4   slice.
  [OK]          Sanity :: Indexing and Slicing                    5   set_slice.
  [OK]          Sanity :: Indexing and Slicing                    6   slice.
  [OK]          Sanity :: Indexing and Slicing                    7   set_slice.
  [OK]          Sanity :: Linear Algebra                          0   dot.
> [FAIL]        Sanity :: Linear Algebra                          1   matmul.
  [OK]          Sanity :: Neural Network                          0   relu.
  [OK]          Sanity :: Neural Network                          1   sigmoid.
  [OK]          Sanity :: Neural Network                          2   hardsigmoid.
  [OK]          Sanity :: Neural Network                          3   one_hot.
  [FAIL]        Sanity :: Neural Network                          4   correlate1d.
  [FAIL]        Sanity :: Neural Network                          5   correlate2d.
  [FAIL]        Sanity :: Neural Network                          6   convolve1d.
  [FAIL]        Sanity :: Neural Network                          7   convolve2d.
  [OK]          Sanity :: Neural Network                          8   avg_pool1d.
  [OK]          Sanity :: Neural Network                          9   avg_pool2d.
  [OK]          Sanity :: Neural Network                         10   max_pool1d.
  [OK]          Sanity :: Neural Network                         11   max_pool2d.
  [OK]          Sanity :: Neural Network                         12   min_pool1d.
  [OK]          Sanity :: Neural Network                         13   min_pool2d.
  [OK]          Sanity :: Random Number Generation                0   rand.
  [OK]          Sanity :: Random Number Generation                1   randn.
  [OK]          Sanity :: Random Number Generation                2   randint.
  [OK]          Sanity :: Sorting and Searching                   0   sort.
  [OK]          Sanity :: Sorting and Searching                   1   argsort.
  [OK]          Sanity :: Sorting and Searching                   2   argmax.
  [OK]          Sanity :: Sorting and Searching                   3   argmin.
  [OK]          Sanity :: Display and Formatting                  0   pp_data.
  [OK]          Sanity :: Display and Formatting                  1   data_to_string.
  [OK]          Sanity :: Display and Formatting                  2   print_data.
  [OK]          Sanity :: Display and Formatting                  3   pp.
  [OK]          Sanity :: Display and Formatting                  4   to_string.
  [OK]          Sanity :: Display and Formatting                  5   print.
  [OK]          Sanity :: Higher-order Functions                  0   map.
  [OK]          Sanity :: Higher-order Functions                  1   map preserves shape.
  [OK]          Sanity :: Higher-order Functions                  2   iter.
  [OK]          Sanity :: Higher-order Functions                  3   fold.
  [OK]          Sanity :: Higher-order Functions                  4   fold product.
  [OK]          Sanity :: Higher-order Functions                  5   fold max.
  [OK]          Sanity :: Higher-order Functions                  6   map_item.
  [OK]          Sanity :: Higher-order Functions                  7   iter_item.
  [OK]          Sanity :: Higher-order Functions                  8   fold_item.

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [FAIL]        Sanity :: Linear Algebra                          1   matmul.                              │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────┘
ASSERT matmul
ASSERT matmul
FAIL matmul

   Expected: `[|14; 32; 32; 77|]'
   Received: `[|0; 0; 0; 0|]'

Raised at Alcotest_engine__Test.check in file "src/alcotest-engine/test.ml", lines 216-226, characters 4-19
Called from Alcotest_engine__Core.Make.protect_test.(fun) in file "src/alcotest-engine/core.ml", line 186, characters 17-23
Called from Alcotest_engine__Monad.Identity.catch in file "src/alcotest-engine/monad.ml", line 24, characters 31-35

Logs saved to `~/Documents/raven/_build/default/nx/test/_build/_tests/Nx Sanity/Sanity U+003AU+003A Linear Algebra.001.output'.
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────

Full test results in `~/Documents/raven/_build/default/nx/test/_build/_tests/Nx Sanity'.
5 failures! in 0.023s. 217 tests run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions