File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
mlir/optimization/scheduler/tests Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ module {
2+ func.func @matmul (%A: tensor <128 x256 xf32 >,
3+ %B: tensor <256 x128 xf32 >,
4+ %C: tensor <128 x128 xf32 >) -> tensor <128 x128 xf32 > {
5+ %cst = arith.constant 0.000000e+00 : f32
6+ %0 = linalg.matmul
7+ ins (%A , %B : tensor <128 x256 xf32 >, tensor <256 x128 xf32 >)
8+ outs (%C : tensor <128 x128 xf32 >) -> tensor <128 x128 xf32 >
9+
10+ %1 = linalg.generic {
11+ indexing_maps = [affine_map <(d0 , d1 ) -> (d0 , d1 )>,
12+ affine_map <(d0 , d1 ) -> (d0 , d1 )>],
13+ iterator_types = [" parallel" , " parallel" ]
14+ } ins (%0 : tensor <128 x128 xf32 >) outs (%C : tensor <128 x128 xf32 >) {
15+ ^bb0 (%in: f32 , %out: f32 ):
16+ %2 = arith.maxnumf %in , %cst : f32
17+ linalg.yield %2 : f32
18+ } -> tensor <128 x128 xf32 >
19+ return %1 : tensor <128 x128 xf32 >
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments