[PT FE]: fix gptq patching for strided tensors (#24871)

### Details:
 - *fix reshaping of strided tensor in gptq patcher*

### Tickets:
 - *CVS-140119*
 - *CVS-143119*
This commit is contained in:
Ekaterina Aidova 2024-06-10 14:50:46 +04:00 committed by GitHub
parent 9465604223
commit 73a2d13721
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ def patched_forward(self, *args, **kwargs):
x = args[0]
dtype = x.dtype
outshape = x.shape[:-1] + (self.width,)
x = x.view(-1, x.shape[-1])
x = x.contiguous().view(-1, x.shape[-1])
groups = self.qzeros.shape[0]
height = self.qweight.shape[0]