Skip to contents

Element-wise logical OR.

Usage

nvl_or(lhs, rhs)

Arguments

lhs, rhs

(tensorish)
Tensorish values of data type boolean, integer, or unsigned integer. Must have the same shape.

Value

tensorish
Has the same shape and data type as the inputs. It is ambiguous if both inputs are ambiguous.

Implemented Rules

  • stablehlo

  • backward

StableHLO

Lowers to stablehlo::hlo_or().

See also

Examples

jit_eval({
  x <- nv_tensor(c(TRUE, FALSE, TRUE))
  y <- nv_tensor(c(TRUE, TRUE, FALSE))
  nvl_or(x, y)
})
#> AnvilTensor
#>  1
#>  1
#>  1
#> [ CPUi1{3} ]