Managed reference to TypeRelationNode.
More...
#include <type_relation.h>
|
| TypeRelation (TypeRelationFn func, Array< Type > args, int num_inputs, Attrs attrs) |
| Constructor. More...
|
|
| TVM_DEFINE_OBJECT_REF_METHODS (TypeRelation, TypeConstraint, TypeRelationNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (TypeConstraint, Type, TypeConstraintNode) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (Type, ObjectRef, TypeNode) |
|
| ObjectRef ()=default |
| default constructor More...
|
|
| ObjectRef (ObjectPtr< Object > data) |
| Constructor from existing object ptr. More...
|
|
bool | same_as (const ObjectRef &other) const |
| Comparator. More...
|
|
bool | operator== (const ObjectRef &other) const |
| Comparator. More...
|
|
bool | operator!= (const ObjectRef &other) const |
| Comparator. More...
|
|
bool | operator< (const ObjectRef &other) const |
| Comparator. More...
|
|
bool | defined () const |
|
const Object * | get () const |
|
const Object * | operator-> () const |
|
bool | unique () const |
|
int | use_count () const |
|
template<typename ObjectType , typename = std::enable_if_t<std::is_base_of_v<Object, ObjectType>>> |
const ObjectType * | as () const |
| Try to downcast the internal Object to a raw pointer of a corresponding type. More...
|
|
template<typename ObjectRefType , typename = std::enable_if_t<std::is_base_of_v<ObjectRef, ObjectRefType>>> |
Optional< ObjectRefType > | as () const |
| Try to downcast the ObjectRef to a Optional<T> of the requested type. More...
|
|
◆ TypeRelation()
Constructor.
- Parameters
-
func | The relation function. |
args | The arguments to the type relation. |
num_inputs | Number of inputs. |
attrs | Attributes to the relation function. |
- See also
- TypeRelationNode for more docs about these fields.
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: