Skip to content

Commit

Permalink
Fix name device is not found bug (#12703)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscilloscope98 authored Jan 13, 2025
1 parent e2d58f7 commit a1da790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/llm/src/ipex_llm/transformers/low_bit_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def get_shape(self):
return self._shape

@overload
def to(self: T, device: Optional[Union[int, device]]=...,
def to(self: T, device: Optional[Union[int, torch.device]]=...,
dtype: Optional[Union[dtype, str]]=..., non_blocking: bool=...,) -> T:
...

Expand Down

0 comments on commit a1da790

Please sign in to comment.