Commit 3249f6cc authored by yangql1's avatar yangql1
Browse files

修awq的tp2的bug问题

parent 14d195dc
...@@ -335,7 +335,7 @@ class AWQLinearMethod(LinearMethodBase): ...@@ -335,7 +335,7 @@ class AWQLinearMethod(LinearMethodBase):
reshaped_x = x.reshape(-1, x.shape[-1]) reshaped_x = x.reshape(-1, x.shape[-1])
m = reshaped_x.shape[0] m = reshaped_x.shape[0]
k = reshaped_x.shape[-1] k = reshaped_x.shape[-1]
n = layer.output_size n = zeros_and_scales.shape[0]
out_shape = (x.shape[:-1] + (n, )) out_shape = (x.shape[:-1] + (n, ))
......
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