array-api
array-api copied to clipboard
Specify the behavior of clip() when one of the operands is nan
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.