2020-05-07 09:41:54 +08:00
|
|
|
// RUN: npcomp-opt <%s | FileCheck %s --dump-input=fail
|
|
|
|
|
|
|
|
func @f(%arg0: tensor<?xf32>, %arg1: tensor<?xf32>) {
|
2020-09-19 05:05:36 +08:00
|
|
|
// CHECK: tcf.add %arg0, %arg1 : (tensor<?xf32>, tensor<?xf32>) -> tensor<?xf32>
|
|
|
|
%0 = tcf.add %arg0, %arg1 : (tensor<?xf32>, tensor<?xf32>) -> tensor<?xf32>
|
2020-05-07 09:41:54 +08:00
|
|
|
return
|
|
|
|
}
|
2020-09-18 09:56:01 +08:00
|
|
|
|
|
|
|
func @matmul(%arg0: tensor<?x?xf32>, %arg1: tensor<?x?xf32>) -> tensor<?x?xf32> {
|
|
|
|
// CHECK: tcf.matmul %arg0, %arg1 : (tensor<?x?xf32>, tensor<?x?xf32>) -> tensor<?x?xf32>
|
|
|
|
%0 = tcf.matmul %arg0, %arg1 : (tensor<?x?xf32>, tensor<?x?xf32>) -> tensor<?x?xf32>
|
|
|
|
return %0 : tensor<?x?xf32>
|
|
|
|
}
|