diff options
Diffstat (limited to 'candle-pyo3/py_src/candle/nn/module.py')
-rw-r--r-- | candle-pyo3/py_src/candle/nn/module.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/candle-pyo3/py_src/candle/nn/module.py b/candle-pyo3/py_src/candle/nn/module.py index 514d92b8..972d9a91 100644 --- a/candle-pyo3/py_src/candle/nn/module.py +++ b/candle-pyo3/py_src/candle/nn/module.py @@ -204,12 +204,10 @@ class Module: T_destination = TypeVar("T_destination", bound=Dict[str, Any]) @overload - def state_dict(self, *, destination: T_destination, prefix: str = ..., keep_vars: bool = ...) -> T_destination: - ... + def state_dict(self, *, destination: T_destination, prefix: str = ..., keep_vars: bool = ...) -> T_destination: ... @overload - def state_dict(self, *, prefix: str = ..., keep_vars: bool = ...) -> Dict[str, Any]: - ... + def state_dict(self, *, prefix: str = ..., keep_vars: bool = ...) -> Dict[str, Any]: ... def state_dict(self, *args, destination=None, prefix="", keep_vars=False): r"""Returns a dictionary containing references to the whole state of the module. @@ -586,12 +584,10 @@ class Module: self: T, device: str = ..., dtype: Optional[Union[DType, str]] = ..., - ) -> T: - ... + ) -> T: ... @overload - def to(self: T, dtype: Union[DType, str]) -> T: - ... + def to(self: T, dtype: Union[DType, str]) -> T: ... def to(self, *args, **kwargs): r"""Moves and/or casts the parameters and buffers. |