torch.nanmedian
- torch.nanmedian(input) → Tensor
Returns the median of the values in
input, ignoringNaNvalues.This function is identical to
when there are no values in . When has one or more values, will always return , while this function will return the median of the non- elements in . If all the elements in are it will also return .