|
| int | count (const Op &op) const |
| | Check whether an operator has a value in this column.
|
| |
| ValueType | operator[] (const Op &op) const |
| | Look up an operator's attribute, raising InternalError if absent.
|
| |
| ValueType | get (const Op &op, ValueType def_value) const |
| | Look up an operator's attribute with a fallback.
|
| |
| ValueType | get (const Expr &expr, ValueType def_value) const |
| | Look up an expression's attribute with a fallback.
|
| |
template<typename ValueType>
class tvm::OpAttrMap< ValueType >
Typed live view of an Op attribute column.
Copies share the retained mutable column and observe later registrations, replacements, resets, and growth. Values are returned by value, never as references into a backing array. Registration is not synchronized with readers.
- Template Parameters
-
| ValueType | The attribute value type. |