Managed reference to ComputeOpNode.
More...
#include <operation.h>
|
| ComputeOp (std::string name, std::string tag, Map< String, ObjectRef > attrs, Array< IterVar > axis, Array< PrimExpr > body) |
|
| TVM_DEFINE_OBJECT_REF_METHODS (ComputeOp, Operation, ComputeOpNode) |
|
| TVM_DEFINE_OBJECT_REF_COW_METHOD (ComputeOpNode) |
|
| Operation () |
| default constructor
More...
|
|
| Operation (ObjectPtr< Object > n) |
|
const OperationNode * | operator-> () const |
| access the internal node container More...
|
|
Tensor | output (size_t i) const |
| get the i-th output of the operation. More...
|
|
| 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...
|
|
Managed reference to ComputeOpNode.
- See also
- ComputeOpNode
◆ ComputeOp()
◆ TVM_DEFINE_OBJECT_REF_COW_METHOD()
tvm::te::ComputeOp::TVM_DEFINE_OBJECT_REF_COW_METHOD |
( |
ComputeOpNode |
| ) |
|
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: