Generic attribute map.
More...
#include <attr_registry_map.h>
|
int | count (const KeyType &key) const |
| Check if the map has key. More...
|
|
const runtime::TVMRetValue & | operator[] (const KeyType &key) const |
| get the corresponding value element at key. More...
|
|
template<typename ValueType > |
ValueType | get (const KeyType &key, ValueType def_value) const |
| get the corresponding value element at key with default value. More...
|
|
template<typename KeyType>
class tvm::AttrRegistryMapContainerMap< KeyType >
Generic attribute map.
- Template Parameters
-
KeyType | the type of the key. |
◆ count()
template<typename KeyType>
Check if the map has key.
- Parameters
-
- Returns
- 1 if key is contained in map, 0 otherwise.
◆ get()
template<typename KeyType>
template<typename ValueType >
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.
- Template Parameters
-
ValueType | The content value type. |
◆ operator[]()
template<typename KeyType>
get the corresponding value element at key.
- Parameters
-
- Returns
- the const reference to the content value.
◆ AttrRegistry
template<typename KeyType>
template<typename , typename >
◆ OpRegEntry
template<typename KeyType>
The documentation for this class was generated from the following file: