24 #ifndef TVM_RELAY_ATTRS_REDUCE_H_
25 #define TVM_RELAY_ATTRS_REDUCE_H_
43 .describe(R
"code(The axis or axes along which to perform the reduction.
45 The default, `axis=()`, will compute over all elements into a
46 scalar array with shape `(1,)`.
48 If `axis` is int, a reduction is performed on a particular axis.
50 If `axis` is a tuple of ints, a reduction is performed on all the axes
51 specified in the tuple.
53 If `exclude` is true, reduction will be performed on the axes that are
54 NOT in axis instead.)code");
57 "If this is set to `True`, the reduced axes are left "
58 "in the result as dimension with size one.");
60 "Whether to perform reduction on axis that are NOT in axis instead.");
74 .describe(R
"code(The axis or axes along which to perform the reduction.
76 The default, `axis=()`, will compute over all elements into a
77 scalar array with shape `(1,)`.
79 If `axis` is int, a reduction is performed on a particular axis.
81 If `axis` is a tuple of ints, a reduction is performed on all the axes
82 specified in the tuple.
84 If `exclude` is true, reduction will be performed on the axes that are
85 NOT in axis instead.)code");
88 "If this is set to `True`, the reduced axes are left "
89 "in the result as dimension with size one.");
93 "Whether to select the last index if the target element appears multiple times, else "
94 "select the first index which the target element appears");
96 "Whether to perform reduction on axis that are NOT in axis instead.");
109 .describe(R
"code(The axis or axes along which to perform the reduction.
111 The default, `axis=()`, will compute over all elements into a
112 scalar array with shape `(1,)`.
114 If `axis` is int, a reduction is performed on a particular axis.
116 If `axis` is a tuple of ints, a reduction is performed on all the axes
117 specified in the tuple.
119 If `exclude` is true, reduction will be performed on the axes that are
120 NOT in axis instead.)code");
123 "If this is set to `True`, the reduced axes are left "
124 "in the result as dimension with size one.");
126 "Whether to perform reduction on axis that are NOT in axis instead.");
The base class of the all the Use "curiously recurring template pattern".
Definition: attrs.h:870
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Helpers for attribute objects.
#define TVM_ATTR_FIELD(FieldName)
Declare an attribute field.
Definition: attrs.h:76
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
TObjectRef NullValue()
Create a NodeRef type that represents null.
Definition: attrs.h:84
Attributes for Reduce operators which reduce by finding a single element. E.g. argmin.
Definition: reduce.h:65
bool keepdims
Definition: reduce.h:67
Array< Integer > axis
Definition: reduce.h:66
bool select_last_index
Definition: reduce.h:68
bool exclude
Definition: reduce.h:69
TVM_DECLARE_ATTRS(ArgReduceAttrs, "relay.attrs.ArgReduceAttrs")
Definition: reduce.h:71
Attributes for Reduce operators.
Definition: reduce.h:35
Array< Integer > axis
Definition: reduce.h:36
TVM_DECLARE_ATTRS(ReduceAttrs, "relay.attrs.ReduceAttrs")
Definition: reduce.h:40
bool exclude
Definition: reduce.h:38
bool keepdims
Definition: reduce.h:37
bool exclude
Definition: reduce.h:103
bool keepdims
Definition: reduce.h:102
TVM_DECLARE_ATTRS(VarianceAttrs, "relay.attrs.VarianceAttrs")
Definition: reduce.h:106
Array< Integer > axis
Definition: reduce.h:101
bool unbiased
Definition: reduce.h:104