Skip to content
fn

log2_inplace_op

→TensorImplPtr
int log2_inplace_op(const int & a)

In-place base-2 logarithm: writes log⁡2x\log_2 x back into a.

Math

ai←log⁡2aia_i \leftarrow \log_2 a_i

See Also

log2_op — out-of-place counterpart.

Parameters

aTensorImplPtr
Tensor to log in place. Must be non-null.

Returns

TensorImplPtr

The same pointer as a.