Skip to content
fn

round_inplace_op

→TensorImplPtr
int round_inplace_op(const int & a)

In-place banker's rounding: writes round(x)\mathrm{round}(x) back into a.

Math

ai←round(ai)a_i \leftarrow \mathrm{round}(a_i)

See Also

round_op — out-of-place counterpart.

Parameters

aTensorImplPtr
Tensor to round in place. Must be non-null. Half-to-even ("banker's") rounding follows the backend default.

Returns

TensorImplPtr

The same pointer as a.