Fix name device is not found bug (#12703)
This commit is contained in:
parent
e2d58f733e
commit
a1da7908b9
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ class FP4Params(torch.nn.Parameter):
|
||||||
return self._shape
|
return self._shape
|
||||||
|
|
||||||
@overload
|
@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:
|
dtype: Optional[Union[dtype, str]]=..., non_blocking: bool=...,) -> T:
|
||||||
...
|
...
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue