[Linalg] Update/fix documentation for linalg.indexed_generic.
PiperOrigin-RevId: 283503642 Change-Id: Iee41c0a75c73e0f9b6e5359b71b1f66f814e100c
This commit is contained in:
parent
8fad723f04
commit
a56901ffc9
@ -567,8 +567,8 @@ def IndexedGenericOp : GenericOpBase<"indexed_generic"> {
|
|||||||
To support inplace updates in a generic fashion, the signature of the
|
To support inplace updates in a generic fashion, the signature of the
|
||||||
function must be:
|
function must be:
|
||||||
```
|
```
|
||||||
fun([input views element types], [output views element types])
|
fun([index types for induction variables], [input views element types],
|
||||||
-> ([output views element types])
|
[output views element types]) -> ([output views element types])
|
||||||
```
|
```
|
||||||
- indexing_maps: a list of AffineMapAttr, one AffineMapAttr per each input
|
- indexing_maps: a list of AffineMapAttr, one AffineMapAttr per each input
|
||||||
and output view. Such AffineMapAttr specifies the mapping between the
|
and output view. Such AffineMapAttr specifies the mapping between the
|
||||||
@ -587,7 +587,7 @@ def IndexedGenericOp : GenericOpBase<"indexed_generic"> {
|
|||||||
Example:
|
Example:
|
||||||
Defining a #matmul_trait attribute in MLIR can be done as follows:
|
Defining a #matmul_trait attribute in MLIR can be done as follows:
|
||||||
```mlir
|
```mlir
|
||||||
func @fma(%a: f32, %b: f32, %c: f32) -> f32 {
|
func @fma(%i: index, %j: index, %k: index, %a: f32, %b: f32, %c: f32) -> f32 {
|
||||||
%d = mulf %a, %b: f32
|
%d = mulf %a, %b: f32
|
||||||
%e = addf %c, %d: f32
|
%e = addf %c, %d: f32
|
||||||
return %e: f32
|
return %e: f32
|
||||||
|
Loading…
Reference in New Issue
Block a user