|
tvm
|
Match introduces a constraint that the source tensor region can be remapped to the data layout specified by the tensor field. The constraint can be checked in later part of lowering (or optionally during runtime). More...
#include <stmt.h>
Public Member Functions | |
| MatchTensorRegionNode (ffi::UnsafeInit tag) | |
| MatchTensorRegionNode (tirx::TensorVar tensor, TensorRegion source) | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("s_tir.MatchTensorRegion", MatchTensorRegionNode, ffi::Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Public Attributes | |
| tirx::TensorVar | tensor |
| The target tensor. | |
| TensorRegion | source |
| The source tensor region. | |
Static Public Attributes | |
| static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
Match introduces a constraint that the source tensor region can be remapped to the data layout specified by the tensor field. The constraint can be checked in later part of lowering (or optionally during runtime).
MatchTensorRegion provides a mechanism to represent data layout and compactness constraints in low-level hardware primitives in the IR and defer the check after the sequence of transformations.
|
inlineexplicit |
|
inline |
|
inlinestatic |
| tvm::s_tir::MatchTensorRegionNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "s_tir.MatchTensorRegion" | , |
| MatchTensorRegionNode | , | ||
| ffi::Object | |||
| ) |
|
staticconstexpr |
| TensorRegion tvm::s_tir::MatchTensorRegionNode::source |
The source tensor region.
| tirx::TensorVar tvm::s_tir::MatchTensorRegionNode::tensor |
The target tensor.