diff --git a/src/relay/quantize/realize.cc b/src/relay/quantize/realize.cc index 2716c6e65f65..d77ede3acbf9 100644 --- a/src/relay/quantize/realize.cc +++ b/src/relay/quantize/realize.cc @@ -165,7 +165,7 @@ Expr QuantizeRealize(const Call& ref_call, const Array& new_args, const Ob MakeConstantScalar(cfg->dtype_activation, static_cast(shift_nbit))); } else { data = LeftShift(data, - MakeConstantScalar(cfg->dtype_activation, static_cast(shift_nbit))); + MakeConstantScalar(cfg->dtype_activation, static_cast(-shift_nbit))); } data = Clip(data, clip_min_imm, clip_max_imm); return QRealizeIntExpr(data, dom_scale, n->dtype);