Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MeouSker77 committed Jan 22, 2025
1 parent f662366 commit 5ea9a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/llm/src/ipex_llm/transformers/low_bit_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,9 @@ def forward(self, x: torch.Tensor):
if x_2d.size(0) == 1:
import xe_linear
result = xe_linear.linear_forward_vec(x_2d, self.weight.data,
self.in_len, self.out_len, self.qtype)
self.in_len, self.out_len, self.qtype)
if self.bias is not None:
result += self.bias
return result.view(new_shape)

if len(x_shape) == 3:
Expand Down

0 comments on commit 5ea9a8b

Please sign in to comment.