Skip to contents

Element-wise floor.

Usage

nvl_floor(operand)

Arguments

operand

(tensorish)
Tensorish value of data type floating-point.

Value

tensorish
Has the same shape and data type as the input. It is ambiguous if the input is ambiguous.

Implemented Rules

  • stablehlo

  • backward

StableHLO

Lowers to stablehlo::hlo_floor().

See also

Examples

jit_eval({
  x <- nv_tensor(c(1.2, 2.7, -1.5))
  nvl_floor(x)
})
#> AnvilTensor
#>   1
#>   2
#>  -2
#> [ CPUf32{3} ]