[all-commits] [llvm/llvm-project] 866cb2: [mlir] Fix SubTensorInsertOp semantics
Nicolas Vasilache via All-commits
all-commits at lists.llvm.org
Wed Jan 20 12:23:03 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 866cb26039043581d5ab8b30d5a999a7c273f361
https://github.com/llvm/llvm-project/commit/866cb26039043581d5ab8b30d5a999a7c273f361
Author: Nicolas Vasilache <nicolas.vasilache at gmail.com>
Date: 2021-01-20 (Wed, 20 Jan 2021)
Changed paths:
M mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
M mlir/lib/Dialect/StandardOps/IR/Ops.cpp
M mlir/test/IR/core-ops.mlir
Log Message:
-----------
[mlir] Fix SubTensorInsertOp semantics
Like SubView, SubTensor/SubTensorInsertOp are allowed to have rank-reducing/expanding semantics. In the case of SubTensorInsertOp , the rank of offsets/sizes/strides should be the rank of the destination tensor.
Also, add a builder flavor for SubTensorOp to return a rank-reduced tensor.
Differential Revision: https://reviews.llvm.org/D95076
More information about the All-commits
mailing list