My Project
|
An attribute representing a reference to a sparse vector or tensor object. More...
#include <AttributeDetail.h>
Public Types | |
using | KeyTy = std::tuple< Type, DenseIntElementsAttr, DenseElementsAttr > |
Public Member Functions | |
SparseElementsAttributeStorage (Type type, DenseIntElementsAttr indices, DenseElementsAttr values) | |
bool | operator== (const KeyTy &key) const |
Key equality and hash functions. More... | |
![]() | |
Type | getType () const |
Get the type of this attribute. More... | |
Dialect & | getDialect () const |
Get the dialect of this attribute. More... | |
![]() | |
unsigned | getKind () const |
Get the kind classification of this storage. More... | |
Static Public Member Functions | |
static unsigned | hashKey (const KeyTy &key) |
static SparseElementsAttributeStorage * | construct (AttributeStorageAllocator &allocator, KeyTy key) |
Construct a new storage instance. More... | |
Public Attributes | |
DenseIntElementsAttr | indices |
DenseElementsAttr | values |
Additional Inherited Members | |
![]() | |
AttributeStorage (Type type) | |
AttributeStorage () | |
void | setType (Type type) |
Set the type of this attribute. More... | |
void | initializeDialect (Dialect &newDialect) |
![]() | |
BaseStorage () | |
An attribute representing a reference to a sparse vector or tensor object.
using mlir::detail::SparseElementsAttributeStorage::KeyTy = std::tuple<Type, DenseIntElementsAttr, DenseElementsAttr> |
|
inline |
|
inlinestatic |
Construct a new storage instance.
|
inlinestatic |
|
inline |
Key equality and hash functions.
DenseIntElementsAttr mlir::detail::SparseElementsAttributeStorage::indices |
DenseElementsAttr mlir::detail::SparseElementsAttributeStorage::values |