Skip to content

Commit

Permalink
fix torch qlinear forward
Browse files Browse the repository at this point in the history
  • Loading branch information
ZX-ModelCloud committed Jan 3, 2025
1 parent fccc61f commit 3a041e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptqmodel/nn_modules/qlinear/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def forward(self, x: torch.Tensor):
out_shape = x.shape[:-1] + (self.outfeatures,)
x = x.reshape(-1, x.shape[-1])
x_dtype = x.dtype
out = self._forward(x, out_shape, x_dtype)
out = self._forward(x, x_dtype, out_shape)
return out

def _forward(self, x, x_dtype, out_shape):
Expand Down

0 comments on commit 3a041e5

Please sign in to comment.