MLIR  19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy Struct Reference

#include "Dialect/Quant/IR/TypeDetail.h"

Public Member Functions

 KeyTy (unsigned flags, Type storageType, Type expressedType, ArrayRef< double > scales, ArrayRef< int64_t > zeroPoints, int32_t quantizedDimension, int64_t storageTypeMin, int64_t storageTypeMax)
 
ArrayRef< double > getScales () const
 
ArrayRef< int64_t > getZeroPoints () const
 
bool operator== (const KeyTy &other) const
 
unsigned getHashValue () const
 

Static Public Member Functions

template<typename T , typename U >
static bool genericIsEqual (const T &lhs, const U &rhs)
 

Public Attributes

unsigned flags
 Flags corresponding to the bitmapped enum QuantizationFlags::FlagValue. More...
 
Type storageType
 
Type expressedType
 
ArrayRef< double > scales
 
ArrayRef< int64_t > zeroPoints
 
int32_t quantizedDimension
 
int64_t storageTypeMin
 
int64_t storageTypeMax
 

Detailed Description

Definition at line 161 of file TypeDetail.h.

Constructor & Destructor Documentation

◆ KeyTy()

mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::KeyTy ( unsigned  flags,
Type  storageType,
Type  expressedType,
ArrayRef< double >  scales,
ArrayRef< int64_t >  zeroPoints,
int32_t  quantizedDimension,
int64_t  storageTypeMin,
int64_t  storageTypeMax 
)
inline

Definition at line 162 of file TypeDetail.h.

Member Function Documentation

◆ genericIsEqual()

template<typename T , typename U >
static bool mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::genericIsEqual ( const T &  lhs,
const U &  rhs 
)
inlinestatic

◆ getHashValue()

unsigned mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::getHashValue ( ) const
inline

◆ getScales()

ArrayRef<double> mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::getScales ( ) const
inline

Definition at line 185 of file TypeDetail.h.

References scales.

◆ getZeroPoints()

ArrayRef<int64_t> mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::getZeroPoints ( ) const
inline

Definition at line 187 of file TypeDetail.h.

References zeroPoints.

◆ operator==()

bool mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::operator== ( const KeyTy other) const
inline

Definition at line 202 of file TypeDetail.h.

References genericIsEqual().

Member Data Documentation

◆ expressedType

Type mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::expressedType

Definition at line 177 of file TypeDetail.h.

Referenced by getHashValue().

◆ flags

unsigned mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::flags

Flags corresponding to the bitmapped enum QuantizationFlags::FlagValue.

Definition at line 171 of file TypeDetail.h.

Referenced by getHashValue().

◆ quantizedDimension

int32_t mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::quantizedDimension

Definition at line 181 of file TypeDetail.h.

◆ scales

ArrayRef<double> mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::scales

◆ storageType

Type mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::storageType

Definition at line 174 of file TypeDetail.h.

Referenced by getHashValue().

◆ storageTypeMax

int64_t mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::storageTypeMax

Definition at line 183 of file TypeDetail.h.

Referenced by getHashValue().

◆ storageTypeMin

int64_t mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::storageTypeMin

Definition at line 182 of file TypeDetail.h.

Referenced by getHashValue().

◆ zeroPoints

ArrayRef<int64_t> mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::KeyTy::zeroPoints

The documentation for this struct was generated from the following file: