tvm
|
Attributes used in layout_transform operator. More...
#include <manipulate.h>
Public Member Functions | |
TVM_FFI_DECLARE_FINAL_OBJECT_INFO (LayoutTransformAttrs, BaseAttrsNode) | |
![]() | |
void | InitByPackedArgs (const ffi::PackedArgs &args, bool allow_unknown) final |
Initialize the attributes by arguments. More... | |
![]() | |
virtual | ~BaseAttrsNode () |
virtual destructor More... | |
template<typename... Args> | |
void | InitBySeq (Args &&... args) |
Initialize the attributes by sequence of arguments. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (BaseAttrsNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
Public Attributes | |
tir::IndexMap | index_map |
Optional< PrimValue > | pad_value |
Optional< Array< IntImm > > | axis_separators |
Optional< Array< IntImm > > | input_axis_separators |
Static Public Attributes | |
static constexpr const char * | _type_key = "relax.attrs.LayoutTransformAttrs" |
![]() | |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const char * | _type_key = "ir.Attrs" |
Attributes used in layout_transform operator.
|
inlinestatic |
tvm::relax::LayoutTransformAttrs::TVM_FFI_DECLARE_FINAL_OBJECT_INFO | ( | LayoutTransformAttrs | , |
BaseAttrsNode | |||
) |
|
staticconstexpr |
Optional<Array<IntImm> > tvm::relax::LayoutTransformAttrs::axis_separators |
axis_separators between input axes when generating flattened output axes. For buffers representing flat 1-d memory (e.g. any buffer in RAM), this should be an empty array. For buffers representing non-flat memory, each entry in axis_separators should be the first input axis that is part of a new flattened axis.
tir::IndexMap tvm::relax::LayoutTransformAttrs::index_map |
Optional<Array<IntImm> > tvm::relax::LayoutTransformAttrs::input_axis_separators |
axis_separators for input buffers. Needed to identify if the input buffer to layout_transform contains axis separator.
Optional<PrimValue> tvm::relax::LayoutTransformAttrs::pad_value |