latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.nextafter
- tensorplay.functional.nextafter(input, other, *, out=None) Tensor[source]
Return the next floating-point value after
inputtowardsother, elementwise.The shapes of
inputandothermust be broadcastable.- Parameters:
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> eps = tensorplay.finfo(tensorplay.float32).eps >>> tensorplay.nextafter(tensorplay.tensor([1.0, 2.0]), tensorplay.tensor([2.0, 1.0])) == tensorplay.tensor([eps + 1, 2 - eps]) tensor([True, True])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

