tvm_tirx::ir::prim::op

Function round

Source
pub fn round(x: impl IntoExpr) -> Result<Expr>
Expand description

x rounded to the nearest integer; a constant folds a tie to even, as std::nearbyint does (C++ round, prim.round).