tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
tvm::OpNode Class Reference

Primitive Op(builtin intrinsics) More...

#include <op.h>

Inheritance diagram for tvm::OpNode:
Collaboration diagram for tvm::OpNode:

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (OpNode, RelaxExprNode)
 
- Public Member Functions inherited from tvm::RelaxExprNode
 TVM_DECLARE_BASE_OBJECT_INFO (RelaxExprNode, BaseExprNode)
 
- Public Member Functions inherited from tvm::BaseExprNode
 TVM_DECLARE_BASE_OBJECT_INFO (BaseExprNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::RelaxExprNode
static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::BaseExprNode
static void RegisterReflection ()
 

Public Attributes

String name
 name of the operator More...
 
FuncType op_type
 the type of the operator More...
 
String description
 detailed description of the operator This can be used to generate docstring automatically for the operator. More...
 
Array< AttrFieldInfoarguments
 
String attrs_type_key
 The type key of the attribute field This can be empty, in which case it defaults to anything. More...
 
uint32_t attrs_type_index {0}
 attribute type index, this field varies in each run and is not exposed to frontend. More...
 
int32_t num_inputs = -1
 number of input arguments to the operator, -1 means it is variable length More...
 
int32_t support_level = 10
 support level of the operator, The lower the more priority it contains. This is in analogies to BLAS levels. More...
 
- Public Attributes inherited from tvm::RelaxExprNode
Optional< ObjectRef > struct_info_ = Optional<ObjectRef>()
 Stores the result of structure information of the expression that encapsulate both static shape and runtime information such as shape. More...
 
- Public Attributes inherited from tvm::BaseExprNode
Span span
 Span that points to the original source code. Reserved debug information. More...
 

Static Public Attributes

static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindUniqueInstance
 
static constexpr const char * _type_key = "ir.Op"
 
- Static Public Attributes inherited from tvm::RelaxExprNode
static constexpr const char * _type_key = "ir.RelaxExpr"
 
static constexpr const uint32_t _type_child_slots = 22
 
- Static Public Attributes inherited from tvm::BaseExprNode
static constexpr const char * _type_key = "ir.BaseExpr"
 
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr const uint32_t _type_child_slots = 64
 

Friends

template<typename >
class AttrRegistryMapContainerMap
 
template<typename , typename >
class AttrRegistry
 
class OpRegEntry
 

Detailed Description

Primitive Op(builtin intrinsics)

This data structure stores the meta-data about primitive operators that can be invoked via Call.

Low-level IR intrinsics(such as libc.expf) are also implemented via Op.

See also
Op

Member Function Documentation

◆ RegisterReflection()

static void tvm::OpNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::OpNode::TVM_DECLARE_FINAL_OBJECT_INFO ( OpNode  ,
RelaxExprNode   
)

Friends And Related Function Documentation

◆ AttrRegistry

template<typename , typename >
friend class AttrRegistry
friend

◆ AttrRegistryMapContainerMap

template<typename >
friend class AttrRegistryMapContainerMap
friend

◆ OpRegEntry

friend class OpRegEntry
friend

Member Data Documentation

◆ _type_key

constexpr const char* tvm::OpNode::_type_key = "ir.Op"
staticconstexpr

◆ _type_s_eq_hash_kind

constexpr TVMFFISEqHashKind tvm::OpNode::_type_s_eq_hash_kind = kTVMFFISEqHashKindUniqueInstance
staticconstexpr

◆ arguments

Array<AttrFieldInfo> tvm::OpNode::arguments

◆ attrs_type_index

uint32_t tvm::OpNode::attrs_type_index {0}

attribute type index, this field varies in each run and is not exposed to frontend.

◆ attrs_type_key

String tvm::OpNode::attrs_type_key

The type key of the attribute field This can be empty, in which case it defaults to anything.

◆ description

String tvm::OpNode::description

detailed description of the operator This can be used to generate docstring automatically for the operator.

◆ name

String tvm::OpNode::name

name of the operator

◆ num_inputs

int32_t tvm::OpNode::num_inputs = -1

number of input arguments to the operator, -1 means it is variable length

◆ op_type

FuncType tvm::OpNode::op_type
mutable

the type of the operator

◆ support_level

int32_t tvm::OpNode::support_level = 10

support level of the operator, The lower the more priority it contains. This is in analogies to BLAS levels.


The documentation for this class was generated from the following file: