[mlir][sparse] rename sparse_tensor.(un)pack to sparse_tensor.(dis)as… (#67717)
…semble Pack/Unpack are overridden in many other places, rename the operations to avoid confusion.
This commit is contained in:
@@ -974,14 +974,14 @@ static LogicalResult verifyPackUnPack(Operation *op, bool requiresStaticShape,
|
||||
return success();
|
||||
}
|
||||
|
||||
LogicalResult PackOp::verify() {
|
||||
LogicalResult AssembleOp::verify() {
|
||||
const auto valuesTp = getRankedTensorType(getValues());
|
||||
const auto lvlsTp = getLevels().getTypes();
|
||||
const auto resTp = getSparseTensorType(getResult());
|
||||
return verifyPackUnPack(*this, true, resTp, valuesTp, lvlsTp);
|
||||
}
|
||||
|
||||
LogicalResult UnpackOp::verify() {
|
||||
LogicalResult DisassembleOp::verify() {
|
||||
if (getOutValues().getType() != getRetValues().getType())
|
||||
return emitError("output values and return value type mismatch");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user