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

Content-aware structural hashing. More...

#include <structural_hash.h>

Inheritance diagram for tvm::StructuralHash:
Collaboration diagram for tvm::StructuralHash:

Public Member Functions

uint64_t operator() (const ObjectRef &key) const
 Compute structural hashing value for an object. More...
 
- Public Member Functions inherited from tvm::BaseValueHash
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
 

Additional Inherited Members

- Protected Member Functions inherited from tvm::BaseValueHash
template<typename T , typename U >
uint64_t Reinterpret (T value) const
 

Detailed Description

Content-aware structural hashing.

The structural hash value is recursively defined in the DAG of IRNodes. There are two kinds of nodes:

Member Function Documentation

◆ operator()()

uint64_t tvm::StructuralHash::operator() ( const ObjectRef key) const

Compute structural hashing value for an object.

Parameters
keyThe left operand.
Returns
The hash value.

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