The attribute tells the operator to handle symmetric structures for 2D tensors.
By default, the operator assumes the input tensor is not symmetric.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td | ||
---|---|---|
42 | we should use *operation according to Alex |
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td | ||
---|---|---|
44–45 | The default should be the other way around: assume non-symmetric unless $symmetric is passed. |
As discussed offline, until that time that we support symmetry explicitly in the sparse tensor type somehow, let's make an attribute "expand_symmetric" which will do the a_ij/aji insertion when a symmetric matrix is read from e.g. MM. In all other case, we just read the data provided, marked symmetric or not.
mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td | ||
---|---|---|
43 | Rephrase: to make symmetry in external formats explicit in the storage. That is, .... |
we should use *operation according to Alex