Map<Key, ValueType> used to store meta-data.
More...
#include <attr_registry_map.h>
template<typename KeyType, typename ValueType>
class tvm::AttrRegistryMap< KeyType, ValueType >
Map<Key, ValueType> used to store meta-data.
- Template Parameters
-
KeyType | The type of the key |
ValueType | The type of the value stored in map. |
◆ AttrRegistryMap()
template<typename KeyType , typename ValueType >
◆ count()
template<typename KeyType , typename ValueType >
Check if the map has op as key.
- Parameters
-
- Returns
- 1 if op is contained in map, 0 otherwise.
◆ get()
template<typename KeyType , typename ValueType >
ValueType tvm::AttrRegistryMap< KeyType, ValueType >::get |
( |
const KeyType & |
key, |
|
|
ValueType |
def_value |
|
) |
| const |
|
inline |
get the corresponding value element at key with default value.
- Parameters
-
key | The key to the map |
def_value | The default value when the key does not exist. |
- Returns
- the const reference to the content value.
◆ operator[]()
template<typename KeyType , typename ValueType >
get the corresponding value element at key.
- Parameters
-
- Returns
- the const reference to the content value.
◆ map_
template<typename KeyType , typename ValueType >
The documentation for this class was generated from the following file: