From 1c5bbf3617b13a5167478c806bc057b95fa1db39 Mon Sep 17 00:00:00 2001 From: Yuwen Hu Date: Mon, 13 Jan 2025 09:31:04 +0800 Subject: [PATCH] Fix name device is not found bug --- python/llm/src/ipex_llm/transformers/low_bit_linear.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/llm/src/ipex_llm/transformers/low_bit_linear.py b/python/llm/src/ipex_llm/transformers/low_bit_linear.py index 3aa99e2eac3..78e10c2c7ac 100644 --- a/python/llm/src/ipex_llm/transformers/low_bit_linear.py +++ b/python/llm/src/ipex_llm/transformers/low_bit_linear.py @@ -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: ...