mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 03:25:54 -04:00
[mlir] [VectorOps] fixed minor typos in vector ops doc
Summary: Rationale: Some examples were using "offsets : [0, 2]" syntax which should use a "=" instead. The same examples were referring to the integer attribute array as k-dimensional, which is a bit confusing (it is 1-dimensional, with k elements). Changed to "k-sized". Reviewers: nicolasvasilache, andydavis1, ftynse Reviewed By: nicolasvasilache Subscribers: merge_guards_bot, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, liufengdb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73293
This commit is contained in:
parent
7154413567
commit
aabc3c59e1
@ -495,10 +495,10 @@ def Vector_InsertStridedSliceOp :
|
|||||||
Results<(outs AnyVector)> {
|
Results<(outs AnyVector)> {
|
||||||
let summary = "strided_slice operation";
|
let summary = "strided_slice operation";
|
||||||
let description = [{
|
let description = [{
|
||||||
Takes a k-D source vector, an n-D destination vector (n >= k), n-D `offsets`
|
Takes a k-D source vector, an n-D destination vector (n >= k), n-sized
|
||||||
integer array attribute, a k-D `strides` integer array attribute and inserts
|
`offsets` integer array attribute, a k-sized `strides` integer array attribute
|
||||||
the k-D source vector as a strided subvector at the proper offset into the
|
and inserts the k-D source vector as a strided subvector at the proper offset
|
||||||
n-D destination vector.
|
into the n-D destination vector.
|
||||||
|
|
||||||
At the moment strides must contain only 1s.
|
At the moment strides must contain only 1s.
|
||||||
|
|
||||||
@ -509,7 +509,7 @@ def Vector_InsertStridedSliceOp :
|
|||||||
Examples:
|
Examples:
|
||||||
```
|
```
|
||||||
%2 = vector.insert_strided_slice %0, %1
|
%2 = vector.insert_strided_slice %0, %1
|
||||||
{offsets : [0, 0, 2], strides : [1, 1]}:
|
{offsets = [0, 0, 2], strides = [1, 1]}:
|
||||||
vector<2x4xf32> into vector<16x4x8xf32>
|
vector<2x4xf32> into vector<16x4x8xf32>
|
||||||
```
|
```
|
||||||
}];
|
}];
|
||||||
@ -693,9 +693,9 @@ def Vector_StridedSliceOp :
|
|||||||
Results<(outs AnyVector)> {
|
Results<(outs AnyVector)> {
|
||||||
let summary = "strided_slice operation";
|
let summary = "strided_slice operation";
|
||||||
let description = [{
|
let description = [{
|
||||||
Takes an n-D vector, k-D `offsets` integer array attribute, a k-D `sizes`
|
Takes an n-D vector, k-D `offsets` integer array attribute, a k-sized
|
||||||
integer array attribute, a k-D `strides` integer array attribute and
|
`sizes` integer array attribute, a k-sized `strides` integer array
|
||||||
extracts the n-D subvector at the proper offset.
|
attribute and extracts the n-D subvector at the proper offset.
|
||||||
|
|
||||||
At the moment strides must contain only 1s.
|
At the moment strides must contain only 1s.
|
||||||
// TODO(ntv) support non-1 strides.
|
// TODO(ntv) support non-1 strides.
|
||||||
@ -707,7 +707,7 @@ def Vector_StridedSliceOp :
|
|||||||
Examples:
|
Examples:
|
||||||
```
|
```
|
||||||
%1 = vector.strided_slice %0
|
%1 = vector.strided_slice %0
|
||||||
{offsets : [0, 2], sizes : [2, 4], strides : [1, 1]}:
|
{offsets = [0, 2], sizes = [2, 4], strides = [1, 1]}:
|
||||||
vector<4x8x16xf32> to vector<2x4x16xf32>
|
vector<4x8x16xf32> to vector<2x4x16xf32>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user