[Mlir-commits] [mlir] 0c8fdd7 - [mlir] Fix Tensor_InsertSliceOp description
Logan Chien
llvmlistbot at llvm.org
Wed May 25 09:39:16 PDT 2022
Author: Logan Chien
Date: 2022-05-25T09:38:06-07:00
New Revision: 0c8fdd72309e7b6f542acd8213a23917e0fd2e9e
URL: https://github.com/llvm/llvm-project/commit/0c8fdd72309e7b6f542acd8213a23917e0fd2e9e
DIFF: https://github.com/llvm/llvm-project/commit/0c8fdd72309e7b6f542acd8213a23917e0fd2e9e.diff
LOG: [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
Added:
Modified:
mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td b/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
index edb1f20b3cd8a..e32a8d65fec9c 100644
--- a/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
+++ b/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td
@@ -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.
More information about the Mlir-commits
mailing list