MLIR 23.0.0git
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_tgetZeroPoints () 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.
Type storageType
Type expressedType
ArrayRef< double > scales
ArrayRef< int64_tzeroPoints
int32_t quantizedDimension
int64_t storageTypeMin
int64_t storageTypeMax

Detailed Description

Definition at line 162 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

Member Function Documentation

◆ genericIsEqual()

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

Definition at line 193 of file TypeDetail.h.

References lhs, and rhs.

Referenced by operator==(), and mlir::quant::detail::UniformQuantizedPerAxisTypeStorage::operator==().

◆ getHashValue()

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

◆ getScales()

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

Definition at line 186 of file TypeDetail.h.

References scales.

◆ getZeroPoints()

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

Definition at line 188 of file TypeDetail.h.

References zeroPoints.

◆ operator==()

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

Definition at line 203 of file TypeDetail.h.

References genericIsEqual(), and KeyTy().

Member Data Documentation

◆ expressedType

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

Definition at line 178 of file TypeDetail.h.

Referenced by getHashValue(), and KeyTy().

◆ flags

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

Flags corresponding to the bitmapped enum QuantizationFlags::FlagValue.

Definition at line 172 of file TypeDetail.h.

Referenced by getHashValue(), and KeyTy().

◆ quantizedDimension

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

Definition at line 182 of file TypeDetail.h.

Referenced by KeyTy().

◆ scales

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

◆ storageType

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

Definition at line 175 of file TypeDetail.h.

Referenced by getHashValue(), and KeyTy().

◆ storageTypeMax

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

Definition at line 184 of file TypeDetail.h.

Referenced by getHashValue(), and KeyTy().

◆ storageTypeMin

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

Definition at line 183 of file TypeDetail.h.

Referenced by getHashValue(), and KeyTy().

◆ zeroPoints

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

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