Hash definition of base value classes.
More...
#include <structural_hash.h>
|
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...
|
|
|
template<typename T , typename U > |
uint64_t | Reinterpret (T value) const |
|
Hash definition of base value classes.
◆ 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
-
- 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]
◆ 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 |
( |
T |
value | ) |
const |
|
inlineprotected |
The documentation for this class was generated from the following file: