fn
isinf
→Tensorisinf(input: Tensor)Element-wise IEEE 754 infinity check.
Returns a boolean tensor that is True where the entry equals or .
Parameters
inputTensorInput tensor.
Returns
TensorElement-wise result with the same shape as input.
Notes
Mathematical definition:
Output dtype is bool. Not differentiable.
Examples
>>> import lucid
>>> x = lucid.tensor([1.0, 2.0, 3.0])
>>> lucid.isinf(x)
Tensor([...])