Skip to content
fn

log_inplace_op

→TensorImplPtr
int log_inplace_op(const int & a)

In-place natural logarithm: writes ln⁡(x)\ln(x) back into a.

Math

ai←ln⁡(ai)a_i \leftarrow \ln(a_i)

See Also

log_op — out-of-place counterpart.

Parameters

aTensorImplPtr
Tensor to log in place. Must be non-null. Inputs with ai≤0a_i \le 0 follow the backend's convention (typically NaN / −∞-\infty).

Returns

TensorImplPtr

The same pointer as a.