Skip to content
fn

log_op

→TensorImplPtr
int log_op(const int & a)

Python wrappers

Public Python APIs implemented by this engine symbol.

Compute y=ln⁡(x)y = \ln(x) element-wise. Allocates a fresh output of the same shape and dtype as a and delegates to LogBackward::forward.

See Also

LogBackward — backward node.

Parameters

aTensorImplPtr
Input tensor of any shape. Must be strictly positive for finite output; non-positive values produce NaN / −∞-\infty.

Returns

TensorImplPtr

Output tensor of the same shape and dtype.