tvm
|
Reduction operator. More...
#include <expr.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (ReduceNode, PrimExprNode) | |
![]() | |
TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
TVM_DECLARE_BASE_OBJECT_INFO (PrimExprNode, BaseExprNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (BaseExprNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
CommReducer | combiner |
The commutative combiner. More... | |
Array< PrimExpr > | source |
The source operand. More... | |
Array< PrimExpr > | init |
The init operand. More... | |
Array< IterVar > | axis |
The reduction axis. More... | |
PrimExpr | condition |
Predicate on the reduction Only add the body to reduction if condition is true. More... | |
int | value_index |
the index of this reduce node More... | |
![]() | |
DataType | dtype |
The runtime data type of the primitive expression. More... | |
![]() | |
Span | span |
Span that points to the original source code. Reserved debug information. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "tir.Reduce" |
![]() | |
static constexpr const char * | _type_key = "ir.PrimExpr" |
static constexpr const uint32_t | _type_child_slots = 40 |
![]() | |
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 |
Reduction operator.
|
inlinestatic |
tvm::tir::ReduceNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | ReduceNode | , |
PrimExprNode | |||
) |
|
staticconstexpr |
Array<IterVar> tvm::tir::ReduceNode::axis |
The reduction axis.
CommReducer tvm::tir::ReduceNode::combiner |
The commutative combiner.
PrimExpr tvm::tir::ReduceNode::condition |
Predicate on the reduction Only add the body to reduction if condition is true.
Array<PrimExpr> tvm::tir::ReduceNode::init |
The init operand.
Array<PrimExpr> tvm::tir::ReduceNode::source |
The source operand.
int tvm::tir::ReduceNode::value_index |
the index of this reduce node