Skip to contents

Element-wise remainder of division.

Usage

nvl_remainder(lhs, rhs)

Arguments

lhs, rhs

(tensorish)
Tensorish values of data type integer, unsigned integer, or floating-point. 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_remainder().

See also

Examples

jit_eval({
  x <- nv_tensor(c(7, 10, 15))
  y <- nv_tensor(c(3, 4, 6))
  nvl_remainder(x, y)
})
#> AnvilTensor
#>  1
#>  2
#>  3
#> [ CPUf32{3} ]