24 #ifndef TVM_RELAX_ATTRS_INDEX_H_
25 #define TVM_RELAX_ATTRS_INDEX_H_
34 ffi::Optional<int64_t>
axis;
39 refl::ObjectDef<TakeAttrs>()
40 .def_ro(
"axis", &
TakeAttrs::axis,
"The axis over which to select values.")
41 .def_ro(
"mode", &
TakeAttrs::mode,
"The mode for handling out-of-bounds indices.",
42 refl::DefaultValue(
"fast"));
53 refl::ObjectDef<StridedSliceAttrs>().def_ro(
55 "Whether to assume the indices are in bound. If it is set to false, "
56 "out of bound indices will be clipped to the bound.",
57 refl::DefaultValue(
true));
Adapter for AttrsNode with the new reflection API.
Definition: attrs.h:385
Base class of all attribute class.
Definition: attrs.h:102
Definition: repr_printer.h:91
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:37
Attributes used in strided_slice operator.
Definition: index.h:48
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.StridedSliceAttrs", StridedSliceAttrs, BaseAttrsNode)
bool assume_inbound
Definition: index.h:49
static void RegisterReflection()
Definition: index.h:51
Attributes used in take operator.
Definition: index.h:33
ffi::String mode
Definition: index.h:35
ffi::Optional< int64_t > axis
Definition: index.h:34
static void RegisterReflection()
Definition: index.h:37
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.attrs.TakeAttrs", TakeAttrs, BaseAttrsNode)