Commit ea2c27ab authored by zhuwenwen's avatar zhuwenwen
Browse files

update m // 8

parent 90fc8f66
...@@ -184,7 +184,7 @@ class SlimQuantW4A8Int8LinearMethod(LinearMethodBase): ...@@ -184,7 +184,7 @@ class SlimQuantW4A8Int8LinearMethod(LinearMethodBase):
elif m<=64: elif m<=64:
m_ = ((m + 3) // 4) * 4 #取值到最近的4的倍数 m_ = ((m + 3) // 4) * 4 #取值到最近的4的倍数
elif m<=160: elif m<=160:
m_ = ((m + 7) // 8) * 8 m_ = (m // 8) * 8
elif m<200: #256 elif m<200: #256
m_=160 m_=160
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment