tensor: add NaN-ignoring reductions (nan_max, nan_min, ...)
Author: lagguiCreated Aug 13, 2026Updated Sep 29, 2026
Labelsenhancementfeature
Following #4814, the default floating-point extrema operations consistently propagate NaNs across backends.
We should consider adding explicit NaN-ignoring variants that provide a documented, consistent way to compute over non-NaN values.
Potential operations include:
nan_max/nan_minnan_max_dim/nan_min_dimnan_max_dim_with_indices/nan_min_dim_with_indicesnan_argmax/nan_argminnan_cumsumnan_cumprod
The cummax / cummin operations don't have well established precedent, so I'd potentially leave them out for now.
Source: tracel-ai/burn