R/api.R
nv_log.Rd
Element-wise natural logarithm. You can also use log().
log()
nv_log(operand)
(tensorish) Operand.
tensorish
tensorish Has the same shape and data type as the input.
nvl_log() for the underlying primitive.
nvl_log()
jit_eval({ x <- nv_tensor(c(1, 2.718, 7.389)) log(x) }) #> AnvilTensor #> 0.0000 #> 0.9999 #> 2.0000 #> [ CPUf32{3} ]