Skip to main content

function

is_inf

is_inf(value: Symbol) -> Symbol

Computes the elementwise is_inf of a symbolic tensor.

Creates a new op node to compute the elementwise is_inf of a symbolic tensor and adds it to the graph, returning the symbolic result.

Args:

  • value (Symbol): The symbolic tensor to use as the input to the is_inf computation.

Returns:

The result will have: - element type bool, true if the element at a given position is plus or minus infinity, false otherwise - the same shape as the input value.

Raises:

If the symbol doesn't represent a tensor value.