Sparse Tensor Dialect in MLIR
Stay organized with collections
Save and categorize content based on your preferences.
Links to detailed explanation of Sparse Tensor Dialect's operations,
attributes and types.
Operation definition
Attribute definition
Type definition
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."],[[["\u003cp\u003eThis page provides detailed documentation for the Sparse Tensor Dialect in MLIR, including operations, attributes, and types.\u003c/p\u003e\n"],["\u003cp\u003eOperations cover a range of functionalities for manipulating sparse tensors, such as assembly, compression, conversion, expansion, insertion, and reduction.\u003c/p\u003e\n"],["\u003cp\u003eAttributes define properties like coordinate transformation direction, dimension slicing, encoding, sorting kind, and storage specifier kind.\u003c/p\u003e\n"],["\u003cp\u003eA dedicated StorageSpecifierType is introduced for managing storage specifiers.\u003c/p\u003e\n"],["\u003cp\u003eLinks to detailed explanations and specifications for each component of the dialect are provided for easy navigation and deeper understanding.\u003c/p\u003e\n"]]],["The provided content defines the Sparse Tensor Dialect's operations, attributes, and types. Operations include `assemble`, `binary`, `compress`, `concatenate`, `convert`, `coordinates`, `disassemble`, `expand`, `foreach`, `insert`, `load`, `new`, `number_of_entries`, `reduce`, `select`, `sort`, `unary`, and `yield`, among others, which cover tensor manipulation. Attributes describe `CrdTransDirectionKind`, `DimSlice`, `Encoding`, `SortKind`, and `StorageSpecifierKind`. The dialect defines `StorageSpecifierType`. Each definition is linked to its respective documentation page.\n"],null,["# Sparse Tensor Dialect in MLIR\n\nLinks to detailed explanation of Sparse Tensor Dialect's operations,\nattributes and types.\n\nOperation definition\n--------------------\n\n- [sparse_tensor.assemble](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorassemble-sparse_tensorassembleop) (sparse_tensor::AssembleOp)\n- [sparse_tensor.binary](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorbinary-sparse_tensorbinaryop) (sparse_tensor::BinaryOp)\n- [sparse_tensor.compress](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorcompress-sparse_tensorcompressop) (sparse_tensor::CompressOp)\n- [sparse_tensor.concatenate](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorconcatenate-sparse_tensorconcatenateop) (sparse_tensor::ConcatenateOp)\n- [sparse_tensor.convert](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorconvert-sparse_tensorconvertop) (sparse_tensor::ConvertOp)\n- [sparse_tensor.coordinates](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorcoordinates-sparse_tensortocoordinatesop) (sparse_tensor::ToCoordinatesOp)\n- [sparse_tensor.coordinates_buffer](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorcoordinates_buffer-sparse_tensortocoordinatesbufferop) (sparse_tensor::ToCoordinatesBufferOp)\n- [sparse_tensor.crd_translate](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorcrd_translate-sparse_tensorcrdtranslateop) (sparse_tensor::CrdTranslateOp)\n- [sparse_tensor.disassemble](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensordisassemble-sparse_tensordisassembleop) (sparse_tensor::DisassembleOp)\n- [sparse_tensor.expand](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorexpand-sparse_tensorexpandop) (sparse_tensor::ExpandOp)\n- [sparse_tensor.foreach](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorforeach-sparse_tensorforeachop) (sparse_tensor::ForeachOp)\n- [sparse_tensor.insert](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorinsert-sparse_tensorinsertop) (sparse_tensor::InsertOp)\n- [sparse_tensor.load](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorload-sparse_tensorloadop) (sparse_tensor::LoadOp)\n- [sparse_tensor.lvl](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorlvl-sparse_tensorlvlop) (sparse_tensor::LvlOp)\n- [sparse_tensor.new](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensornew-sparse_tensornewop) (sparse_tensor::NewOp)\n- [sparse_tensor.number_of_entries](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensornumber_of_entries-sparse_tensornumberofentriesop) (sparse_tensor::NumberOfEntriesOp)\n- [sparse_tensor.out](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorout-sparse_tensoroutop) (sparse_tensor::OutOp)\n- [sparse_tensor.positions](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorpositions-sparse_tensortopositionsop) (sparse_tensor::ToPositionsOp)\n- [sparse_tensor.push_back](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorpush_back-sparse_tensorpushbackop) (sparse_tensor::PushBackOp)\n- [sparse_tensor.reduce](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorreduce-sparse_tensorreduceop) (sparse_tensor::ReduceOp)\n- [sparse_tensor.reinterpret_map](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorreinterpret_map-sparse_tensorreinterpretmapop) (sparse_tensor::ReinterpretMapOp)\n- [sparse_tensor.reorder_coo](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorreorder_coo-sparse_tensorreordercooop) (sparse_tensor::ReorderCOOOp)\n- [sparse_tensor.select](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorselect-sparse_tensorselectop) (sparse_tensor::SelectOp)\n- [sparse_tensor.slice.offset](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorsliceoffset-sparse_tensortosliceoffsetop) (sparse_tensor::ToSliceOffsetOp)\n- [sparse_tensor.slice.stride](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorslicestride-sparse_tensortoslicestrideop) (sparse_tensor::ToSliceStrideOp)\n- [sparse_tensor.sort](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorsort-sparse_tensorsortop) (sparse_tensor::SortOp)\n- [sparse_tensor.storage_specifier.get](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorstorage_specifierget-sparse_tensorgetstoragespecifierop) (sparse_tensor::GetStorageSpecifierOp)\n- [sparse_tensor.storage_specifier.init](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorstorage_specifierinit-sparse_tensorstoragespecifierinitop) (sparse_tensor::StorageSpecifierInitOp)\n- [sparse_tensor.storage_specifier.set](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorstorage_specifierset-sparse_tensorsetstoragespecifierop) (sparse_tensor::SetStorageSpecifierOp)\n- [sparse_tensor.unary](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorunary-sparse_tensorunaryop) (sparse_tensor::UnaryOp)\n- [sparse_tensor.values](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensorvalues-sparse_tensortovaluesop) (sparse_tensor::ToValuesOp)\n- [sparse_tensor.yield](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparse_tensoryield-sparse_tensoryieldop) (sparse_tensor::YieldOp)\n\nAttribute definition\n--------------------\n\n- [CrdTransDirectionKindAttr](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#crdtransdirectionkindattr)\n- [SparseTensorDimSliceAttr](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparsetensordimsliceattr)\n- [SparseTensorEncodingAttr](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparsetensorencodingattr)\n- [SparseTensorSortKindAttr](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#sparsetensorsortkindattr)\n- [StorageSpecifierKindAttr](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#storagespecifierkindattr)\n\nType definition\n---------------\n\n- [StorageSpecifierType](https://mlir.llvm.org/docs/Dialects/SparseTensorOps/#storagespecifiertype)"]]