Parameter bag for axis-reduction operations.
Used by IBackend::reduce_sum, reduce_mean,
variance, reduce_max, reduce_min, and similar
axis-collapsing ops.
See Also
IBackend::reduce_sum — primary consumer.
Attributes
axesstd::vector<int>List of dimensions to reduce over. Entries may be negative (Python-style) and are normalised by the callee. An empty list is interpreted as reduce over all axes.
keepdimsboolIf
true the collapsed dimensions are retained as size-1 in the output shape; otherwise they are removed.