mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 12:51:04 +01:00
[mlir] Fix linalg.generic matmul example in the doc
Example of Matmul implementation in linalg.generic operation contained few mistakes that can puzzle new startes when trying to run the example. Differential Revision: https://reviews.llvm.org/D82289
This commit is contained in:
committed by
Alex Zinenko
parent
632088c7e8
commit
cde2dc2fa6
@@ -562,10 +562,10 @@ def GenericOp : GenericOpBase<"generic"> {
|
||||
And can be reused in multiple places as:
|
||||
```mlir
|
||||
linalg.generic #matmul_trait %A, %B, %C [other-attributes] {
|
||||
(%a: f32, %b: f32, %c: f32) :
|
||||
^bb0(%a: f32, %b: f32, %c: f32) :
|
||||
%d = mulf %a, %b: f32
|
||||
%e = addf %c, %d: f32
|
||||
linalg_yield %e : f32
|
||||
linalg.yield %e : f32
|
||||
} : memref<?x?xf32, stride_specification>,
|
||||
memref<?x?xf32, stride_specification>,
|
||||
memref<?x?xf32, stride_specification>
|
||||
|
||||
Reference in New Issue
Block a user