tvm
Public Member Functions | Protected Member Functions | List of all members
tvm::BaseValueHash Class Reference

Hash definition of base value classes. More...

#include <structural_hash.h>

Inheritance diagram for tvm::BaseValueHash:
Collaboration diagram for tvm::BaseValueHash:

Public Member Functions

uint64_t operator() (const float &key) const
 
uint64_t operator() (const double &key) const
 
uint64_t operator() (const int64_t &key) const
 
uint64_t operator() (const uint64_t &key) const
 
uint64_t operator() (const int &key) const
 
uint64_t operator() (const bool &key) const
 
uint64_t operator() (const runtime::DataType &key) const
 
template<typename ENum , typename = typename std::enable_if<std::is_enum<ENum>::value>::type>
uint64_t operator() (const ENum &key) const
 
uint64_t operator() (const std::string &key) const
 
uint64_t operator() (const Optional< int64_t > &key) const
 
uint64_t operator() (const Optional< double > &key) const
 
TVM_FFI_INLINE uint64_t HashPODValueInAny (const ffi::Any &key) const
 Compute structural hash value for a POD value in Any. More...
 

Protected Member Functions

template<typename T , typename U >
uint64_t Reinterpret (T value) const
 

Detailed Description

Hash definition of base value classes.

Member Function Documentation

◆ HashPODValueInAny()

TVM_FFI_INLINE uint64_t tvm::BaseValueHash::HashPODValueInAny ( const ffi::Any &  key) const
inline

Compute structural hash value for a POD value in Any.

Parameters
keyThe Any object.
Returns
The hash value.

◆ operator()() [1/11]

uint64_t tvm::BaseValueHash::operator() ( const bool &  key) const
inline

◆ operator()() [2/11]

uint64_t tvm::BaseValueHash::operator() ( const double &  key) const
inline

◆ operator()() [3/11]

template<typename ENum , typename = typename std::enable_if<std::is_enum<ENum>::value>::type>
uint64_t tvm::BaseValueHash::operator() ( const ENum &  key) const
inline

◆ operator()() [4/11]

uint64_t tvm::BaseValueHash::operator() ( const float &  key) const
inline

◆ operator()() [5/11]

uint64_t tvm::BaseValueHash::operator() ( const int &  key) const
inline

◆ operator()() [6/11]

uint64_t tvm::BaseValueHash::operator() ( const int64_t &  key) const
inline

◆ operator()() [7/11]

uint64_t tvm::BaseValueHash::operator() ( const Optional< double > &  key) const
inline

◆ operator()() [8/11]

uint64_t tvm::BaseValueHash::operator() ( const Optional< int64_t > &  key) const
inline

◆ operator()() [9/11]

uint64_t tvm::BaseValueHash::operator() ( const runtime::DataType key) const
inline

◆ operator()() [10/11]

uint64_t tvm::BaseValueHash::operator() ( const std::string &  key) const
inline

◆ operator()() [11/11]

uint64_t tvm::BaseValueHash::operator() ( const uint64_t &  key) const
inline

◆ Reinterpret()

template<typename T , typename U >
uint64_t tvm::BaseValueHash::Reinterpret ( value) const
inlineprotected

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