Reductions
As an intro to masked reductions, please find the document on reduction semantics here.
In general, an operator is a reduction operator if it reduces one or more dimensions of the input tensor to a single value
(e.g. think nanmean
or nansum
)
MaskedTensor currently supports the following reductions:
|
Returns the sum of all elements in the |
|
Returns the mean value of all elements in the |
|
Returns the minimum value of each slice of the |
|
Returns the maximum value of each slice of the |
|
Returns the product of all elements in the |
The next ops to be implemented will be in the ones in the MaskedTensor Reduction RFC. If you would like any others implemented, please create a feature request with proposed input/output semantics!