Add tests for matrices and stack of matrices combinations.
This commit is contained in:
parent
a5f1d39c20
commit
ae966cdee9
|
@ -40,4 +40,14 @@ func @test_matmul_3(%arg0 : tensor<64x42xf32>, %arg1 : tensor<16x?x42x32xf32>) -
|
||||||
// CHECK-LABEL: test_matmul_3
|
// CHECK-LABEL: test_matmul_3
|
||||||
// CHECK: [[RES3:%.+]] = "onnx.MatMul"(%arg0, %arg1) : (tensor<64x42xf32>, tensor<16x?x42x32xf32>) -> tensor<16x?x64x32xf32>
|
// CHECK: [[RES3:%.+]] = "onnx.MatMul"(%arg0, %arg1) : (tensor<64x42xf32>, tensor<16x?x42x32xf32>) -> tensor<16x?x64x32xf32>
|
||||||
// CHECK: return [[RES3]] : tensor<16x?x64x32xf32>
|
// CHECK: return [[RES3]] : tensor<16x?x64x32xf32>
|
||||||
|
}
|
||||||
|
|
||||||
|
/// MatMul: 2-D x K-D (K > 2)
|
||||||
|
func @test_matmul_4(%arg0 : tensor<64x42xf32>, %arg1 : tensor<?x?x?x?xf32>) -> tensor<*xf32> {
|
||||||
|
%0 = "onnx.MatMul"(%arg0, %arg1) : (tensor<64x42xf32>, tensor<?x?x?x?xf32>) -> tensor<*xf32>
|
||||||
|
"std.return"(%0) : (tensor<*xf32>) -> ()
|
||||||
|
|
||||||
|
// CHECK-LABEL: test_matmul_4
|
||||||
|
// CHECK: [[RES4:%.+]] = "onnx.MatMul"(%arg0, %arg1) : (tensor<64x42xf32>, tensor<?x?x?x?xf32>) -> tensor<?x?x64x?xf32>
|
||||||
|
// CHECK: return [[RES4]] : tensor<?x?x64x?xf32>
|
||||||
}
|
}
|
Loading…
Reference in New Issue