tvm
|
Attributes used in layout_transform operator. More...
#include <manipulate.h>
Public Member Functions | |
TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("relax.attrs.LayoutTransformAttrs", 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_FFI_DECLARE_OBJECT_INFO ("ir.Attrs", BaseAttrsNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
Public Attributes | |
tir::IndexMap | index_map |
ffi::Optional< PrimValue > | pad_value |
ffi::Optional< ffi::Array< IntImm > > | axis_separators |
ffi::Optional< ffi::Array< IntImm > > | input_axis_separators |
Additional Inherited Members | |
![]() | |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
Attributes used in layout_transform operator.
|
inlinestatic |
tvm::relax::LayoutTransformAttrs::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "relax.attrs.LayoutTransformAttrs" | , |
LayoutTransformAttrs | , | ||
BaseAttrsNode | |||
) |
ffi::Optional<ffi::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 |
ffi::Optional<ffi::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.
ffi::Optional<PrimValue> tvm::relax::LayoutTransformAttrs::pad_value |