MLIR
21.0.0git
|
#include "Dialect/Quant/IR/TypeDetail.h"
Classes | |
struct | KeyTy |
Public Member Functions | |
UniformQuantizedSubChannelTypeStorage (const KeyTy &key, DenseElementsAttr scales, DenseElementsAttr zeroPoints, ArrayRef< int32_t > quantizedDimensions, ArrayRef< int64_t > blockSizes) | |
bool | operator== (const KeyTy &key) const |
DenseElementsAttr | getScales () const |
DenseElementsAttr | getZeroPoints () const |
ArrayRef< int32_t > | getQuantizedDimensions () const |
ArrayRef< int64_t > | getBlockSizes () const |
![]() | |
QuantizedTypeStorage (unsigned flags, Type storageType, Type expressedType, int64_t storageTypeMin, int64_t storageTypeMax) | |
![]() | |
const AbstractType & | getAbstractType () |
Return the abstract type descriptor for this type. More... | |
Static Public Member Functions | |
static UniformQuantizedSubChannelTypeStorage * | construct (TypeStorageAllocator &allocator, const KeyTy &key) |
Construction. More... | |
static unsigned | hashKey (const KeyTy &key) |
Public Attributes | |
DenseElementsAttr | scales |
DenseElementsAttr | zeroPoints |
ArrayRef< int32_t > | quantizedDimensions |
ArrayRef< int64_t > | blockSizes |
![]() | |
unsigned | flags |
Flags corresponding to the bitmapped enum QuantizationFlags::FlagValue. More... | |
Type | storageType |
Type | expressedType |
int64_t | storageTypeMin |
int64_t | storageTypeMax |
Additional Inherited Members | |
![]() | |
TypeStorage () | |
This constructor is used by derived classes as part of the TypeUniquer. More... | |
![]() | |
BaseStorage ()=default | |
Definition at line 256 of file TypeDetail.h.
|
inline |
Definition at line 330 of file TypeDetail.h.
Referenced by construct().
|
inlinestatic |
Construction.
Definition at line 346 of file TypeDetail.h.
References mlir::StorageUniquer::StorageAllocator::allocate(), mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::KeyTy::blockSizes, blockSizes, mlir::StorageUniquer::StorageAllocator::copyInto(), mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::KeyTy::quantizedDimensions, quantizedDimensions, mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::KeyTy::scales, scales, UniformQuantizedSubChannelTypeStorage(), mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::KeyTy::zeroPoints, and zeroPoints.
|
inline |
Definition at line 367 of file TypeDetail.h.
References blockSizes.
|
inline |
Definition at line 363 of file TypeDetail.h.
References quantizedDimensions.
|
inline |
Definition at line 359 of file TypeDetail.h.
References scales.
|
inline |
Definition at line 361 of file TypeDetail.h.
References zeroPoints.
|
inlinestatic |
Definition at line 357 of file TypeDetail.h.
References mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::KeyTy::getHashValue().
|
inline |
Definition at line 340 of file TypeDetail.h.
References mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::KeyTy::genericIsEqual().
ArrayRef<int64_t> mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::blockSizes |
Definition at line 372 of file TypeDetail.h.
Referenced by construct(), and getBlockSizes().
ArrayRef<int32_t> mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::quantizedDimensions |
Definition at line 371 of file TypeDetail.h.
Referenced by construct(), and getQuantizedDimensions().
DenseElementsAttr mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::scales |
Definition at line 369 of file TypeDetail.h.
Referenced by construct(), and getScales().
DenseElementsAttr mlir::quant::detail::UniformQuantizedSubChannelTypeStorage::zeroPoints |
Definition at line 370 of file TypeDetail.h.
Referenced by construct(), and getZeroPoints().