mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 16:50:51 +08:00
[mlir][sparse] extend unpack operation to support unpacking a batched COO type
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D149103
This commit is contained in:
@@ -719,7 +719,11 @@ LogicalResult UnpackOp::verify() {
|
||||
const auto coordinatesTp = getRankedTensorType(getCoordinates());
|
||||
const auto srcTp = getSparseTensorType(getTensor());
|
||||
return verifyPackUnPack(*this, false, srcTp, valuesTp, coordinatesTp,
|
||||
nullptr);
|
||||
getBatchedLvlsAttr());
|
||||
}
|
||||
|
||||
unsigned UnpackOp::getNumBatchedLvls() {
|
||||
return getBatchedLvls().has_value() ? getBatchedLvls()->getZExtValue() : 0;
|
||||
}
|
||||
|
||||
LogicalResult ConvertOp::verify() {
|
||||
|
||||
Reference in New Issue
Block a user