forked from OSchip/llvm-project
[mlir] Fix Tensor_InsertSliceOp description
This commit fixes `Tensor_InsertSliceOp` `sizes` inputs/attributes description. Before this commit, the description says the `sizes` inputs/attributes denote the size of the return type. But according to the `InsertSliceOpConstantArgumentFolder` in `lib/Dialect/Tensor/IR/TensorOps.cpp`, the `sizes` inputs/attributes actually denote the size of the source type. I had an off-line discussion with the authors of `TensorOps.td` and `TensorOps.cpp`. We concluded that it was a typo in the Op description. This commit updates the Op description to match the actual usage. Differential Revision: https://reviews.llvm.org/D126264
This commit is contained in:
parent
2a28467e53
commit
0c8fdd7230
|
@ -489,7 +489,7 @@ def Tensor_InsertSliceOp : Tensor_OpWithOffsetSizesAndStrides<"insert_slice", [
|
|||
* dest: the tensor into which the source tensor is inserted.
|
||||
* offsets: tensor-rank number of offsets into the `dest` tensor into which
|
||||
the slice is inserted.
|
||||
* sizes: tensor-rank number of sizes which specify the sizes of the result
|
||||
* sizes: tensor-rank number of sizes which specify the sizes of the source
|
||||
tensor type.
|
||||
* strides: tensor-rank number of strides that specify subsampling in each
|
||||
dimension.
|
||||
|
|
Loading…
Reference in New Issue