24 #ifndef TVM_RELAX_ATTRS_MANIPULATE_H_
25 #define TVM_RELAX_ATTRS_MANIPULATE_H_
39 "The axis at which the input arrays are concatenated."
40 "Should lie in range `[-ndim, ndim)`.");
50 "The axes at which the input array are expanded. "
51 "All values are required to lie in range `[-data.ndim - 1, data.ndim]`, "
52 "with the convention of negative indexing.");
79 "The specific value to be used to pad if the layout transform would result in implicit "
80 "padding. If not specified, the compiler is free to choose any value.");
82 .describe(
"The separators between input axes when generating flat output axes");
84 .describe(
"The separators between axes to regenerate output");
93 TVM_ATTR_FIELD(
axes).describe(
"The target axes order, reverse order if not specified.");
104 .describe(
"The input array of indices or the number of split sections.");
115 "The axis to squeeze in the input tensor."
116 "If `axis = None`, all axis of dimension 1 get squeezed;"
117 "Else, the dimension in axes get squeezed."
118 "It is an error if an axis does not has dimension 1.");
130 "The axis along which to repeat values. The negative numbers are interpreted "
131 "counting from the backward. By default, use the flattened input array, and "
132 "return a flat output array.");
150 .set_default(NullValue<Integer>())
151 .describe(
"The axis along which to flip over.");
178 TVM_ATTR_FIELD(
axis).set_default(0).describe(
"The axis over which to select values.");
180 "Reduction mode of the scatter elements, "
181 "either \"update\", \"add\", \"mul\", \"mean\", \"min\" or \"max\".");
191 "Accumulation mode of the ScatterND, "
192 "either \"update\", \"add\", \"mul\", \"min\" or \"max\".");
The base class of the all the Use "curiously recurring template pattern".
Definition: attrs.h:870
Container of constant int that adds more constructors.
Definition: expr.h:632
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Base class of all object reference.
Definition: object.h:519
Optional container that to represent to a Nullable variant of T.
Definition: optional.h:51
Reference to string objects.
Definition: string.h:98
Definition: index_map.h:176
Defines a remapping of buffer indices.
#define TVM_ATTR_FIELD(FieldName)
Declare an attribute field.
Definition: attrs.h:76
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
Attributes used in concat operators.
Definition: manipulate.h:34
Optional< Integer > axis
Definition: manipulate.h:35
TVM_DECLARE_ATTRS(ConcatAttrs, "relax.attrs.ConcatAttrs")
Definition: manipulate.h:37
Attributes used in expand_dims operators.
Definition: manipulate.h:45
TVM_DECLARE_ATTRS(ExpandDimsAttrs, "relax.attrs.ExpandDimsAttrs")
Definition: manipulate.h:48
Array< Integer > axis
Definition: manipulate.h:46
Attributes used in flip operators.
Definition: manipulate.h:146
TVM_DECLARE_ATTRS(FlipAttrs, "relax.attrs.FlipAttrs")
Definition: manipulate.h:148
Integer axis
Definition: manipulate.h:147
Attributes used in gather_elements operators.
Definition: manipulate.h:156
TVM_DECLARE_ATTRS(GatherElementsAttrs, "relax.attrs.GatherElementsAttrs")
Definition: manipulate.h:159
Integer axis
Definition: manipulate.h:157
Attributes used in gather_nd operators.
Definition: manipulate.h:165
Integer batch_dims
Definition: manipulate.h:166
TVM_DECLARE_ATTRS(GatherNDAttrs, "relax.attrs.GatherNDAttrs")
Definition: manipulate.h:167
Attributes used in one_hot operator.
Definition: manipulate.h:197
int axis
Definition: manipulate.h:199
TVM_DECLARE_ATTRS(OneHotAttrs, "relax.attrs.OneHotAttrs")
Definition: manipulate.h:201
int depth
Definition: manipulate.h:198
Attributes used in permute_dims operator.
Definition: manipulate.h:89
TVM_DECLARE_ATTRS(PermuteDimsAttrs, "relax.attrs.PermuteDimsAttrs")
Definition: manipulate.h:92
Optional< Array< Integer > > axes
Definition: manipulate.h:90
Attributes used in repeat operators.
Definition: manipulate.h:123
Optional< Integer > axis
Definition: manipulate.h:125
TVM_DECLARE_ATTRS(RepeatAttrs, "relax.attrs.RepeatAttrs")
Definition: manipulate.h:127
int repeats
Definition: manipulate.h:124
Attributes used in scatter_elements operators.
Definition: manipulate.h:173
String reduction
Definition: manipulate.h:175
Integer axis
Definition: manipulate.h:174
TVM_DECLARE_ATTRS(ScatterElementsAttrs, "relax.attrs.ScatterElementsAttrs")
Definition: manipulate.h:177
Attributes used in scatter_nd operators.
Definition: manipulate.h:186
String reduction
Definition: manipulate.h:187
TVM_DECLARE_ATTRS(ScatterNDAttrs, "relax.attrs.ScatterNDAttrs")
Definition: manipulate.h:189
Attributes used in split operator.
Definition: manipulate.h:98
ObjectRef indices_or_sections
Definition: manipulate.h:99
TVM_DECLARE_ATTRS(SplitAttrs, "relax.attrs.SplitAttrs")
Definition: manipulate.h:102
int axis
Definition: manipulate.h:100
Attributes used in squeeze operators.
Definition: manipulate.h:110
Optional< Array< Integer > > axis
Definition: manipulate.h:111
TVM_DECLARE_ATTRS(SqueezeAttrs, "relax.attrs.SqueezeAttrs")
Definition: manipulate.h:113
Attributes used in tile operators.
Definition: manipulate.h:137
Array< Integer > repeats
Definition: manipulate.h:138
TVM_DECLARE_ATTRS(TileAttrs, "relax.attrs.TileAttrs")
Definition: manipulate.h:140