tvm
|
A commutative reducer node to represent a commutative binary operator with identity element. More...
#include <expr.h>
Public Member Functions | |
ffi::Array< PrimExpr > | operator() (ffi::Array< PrimExpr > a, ffi::Array< PrimExpr > b) const |
Function call operator to combine a and b. More... | |
TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tir.CommReducer", CommReducerNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
Public Attributes | |
ffi::Array< Var > | lhs |
The left argument of reducer. More... | |
ffi::Array< Var > | rhs |
The right argument of reducer. More... | |
ffi::Array< PrimExpr > | result |
The result of reducer. More... | |
ffi::Array< PrimExpr > | identity_element |
The identity element of reducer, which leaves other elements unchanged when combined with it, with respect to the binary operation of this reducer uses. More... | |
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 = kTVMFFISEqHashKindTreeNode |
A commutative reducer node to represent a commutative binary operator with identity element.
ffi::Array<PrimExpr> tvm::tir::CommReducerNode::operator() | ( | ffi::Array< PrimExpr > | a, |
ffi::Array< PrimExpr > | b | ||
) | const |
Function call operator to combine a and b.
|
inlinestatic |
tvm::tir::CommReducerNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "tir.CommReducer" | , |
CommReducerNode | , | ||
Object | |||
) |
|
staticconstexpr |
ffi::Array<PrimExpr> tvm::tir::CommReducerNode::identity_element |
The identity element of reducer, which leaves other elements unchanged when combined with it, with respect to the binary operation of this reducer uses.
ffi::Array<Var> tvm::tir::CommReducerNode::lhs |
The left argument of reducer.
ffi::Array<PrimExpr> tvm::tir::CommReducerNode::result |
The result of reducer.
ffi::Array<Var> tvm::tir::CommReducerNode::rhs |
The right argument of reducer.
|
mutable |
Span that points to the original source code. Reserved debug information.