24#ifndef TVM_RELAX_OP_SORTING_H_
25#define TVM_RELAX_OP_SORTING_H_
46 ffi::Optional<DLDataType>
dtype;
58 ffi::Optional<DLDataType>
dtype;
Base class of all attribute class.
Definition attrs.h:50
Defines a remapping of tensor indices.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition attr.h:23
Attributes used in argsort operator.
Definition sorting.h:43
ffi::Optional< DLDataType > dtype
Definition sorting.h:46
static void RegisterReflection()
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.ArgsortAttrs", ArgsortAttrs, AttrsNode)
int axis
Definition sorting.h:44
bool descending
Definition sorting.h:45
Attributes used in sort operator.
Definition sorting.h:34
static void RegisterReflection()
bool descending
Definition sorting.h:36
int axis
Definition sorting.h:35
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.SortAttrs", SortAttrs, AttrsNode)
Attributes used in topk operator.
Definition sorting.h:53
int k
Definition sorting.h:54
ffi::Optional< DLDataType > dtype
Definition sorting.h:58
ffi::String ret_type
Definition sorting.h:57
int axis
Definition sorting.h:55
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.TopKAttrs", TopKAttrs, AttrsNode)
static void RegisterReflection()
bool largest
Definition sorting.h:56