This simplifies setting up sparse tensors through C-style data structures.
Useful for runtimes that want to interact with MLIR-generated code
without knowning about all bufferization details (viz. memrefs).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
NIT: this is the same as:
std::vector<uint8_t> sparse(rank, SparseTensorStorageBase::kCompressed)
std::vector<unit64_t> perm(rank);
std::iota(perm.begin(), perm.end(), 0);