Skip to main content

//clika-runtime/io.clika.runtime/Ops/trunc

trunc

[common]
fun trunc(input: Tensor): Tensor

trunc(input: Tensor): the trunc operator. Elementwise truncation toward zero (drops the fraction). Value-domain violations follow IEEE semantics (NaN / ±inf in the result), never an error.