// RUN: not npcomp-run-mlir %s \ // RUN: -invoke matmul \ // RUN: -arg-value="dense<[[1.0, 0.0, 1.0], [1.0, 1.0, 1.0]]> : tensor<2x3xf32>" \ // RUN: -arg-value="dense<[[1.0, 2.0], [3.0, 4.0]]> : tensor<2x2xf32>" \ // RUN: -shared-libs=%npcomp_runtime_shlib 2>&1 \ // RUN: | FileCheck %s // Invalid: contracting dimensions don't match. // [1 0 1] * [1 2] = [6 8] // [1 1 1] [3 4] [9 12] // CHECK: NPCOMP: aborting: mismatching contracting dimension for matmul func @matmul(%arg0: tensor, %arg1: tensor) -> tensor { %0 = tcf.matmul %arg0, %arg1 : (tensor, tensor) -> tensor return %0 : tensor }