Skip to contents

Element-wise natural logarithm.

Usage

nvl_log(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_log().

See also

Examples

jit_eval({
  x <- nv_tensor(c(1, 2.718, 7.389))
  nvl_log(x)
})
#> AnvilTensor
#>  0.0000
#>  0.9999
#>  2.0000
#> [ CPUf32{3} ]