tvm_tirx::ir::prim::op

Function neg

Source
pub fn neg(a: impl IntoExpr) -> Result<Expr>
Expand description

-a: a constant is negated in place when the result is a value of its type, anything else is MakeConst(a.ty(), 0) - a (C++ neg).