array-api icon indicating copy to clipboard operation
array-api copied to clipboard

Specify the behavior of clip() when one of the operands is nan

Open asmeurer opened this issue 8 months ago • 0 comments

This follows the NumPy behavior, where the result is nan if any operand is nan. I checked PyTorch and it seems to do this as well.

asmeurer avatar Jun 05 '24 22:06 asmeurer