@@ -228,17 +228,25 @@ class Adagrad:
228228class Adam:
229229 """Adam with optional (coupled, L2) weight decay; use `AdamW` for decoupled decay."""
230230 def __init__(self, params: list[Tensor], lr: float = 1e-3, betas: tuple[float, float] = (0.9, 0.999), eps: float = 1e-8, weight_decay: float = 0.0, amsgrad: bool = False, maximize: bool = False) -> None: ...
231+ def load_state_dict(self, state_dict: dict[str, Any]) -> None: ...
231232 @property
232233 def lr(self) -> float: ...
234+ @property
235+ def param_groups(self) -> list[Any]: ...
233236 def set_learning_rate(self, lr: float) -> None: ...
237+ def state_dict(self) -> dict[str, Any]: ...
234238 def step(self) -> None: ...
235239 def zero_grad(self) -> None: ...
236240
237241class AdamW:
238242 def __init__(self, params: list[Tensor], lr: float = 1e-3, betas: tuple[float, float] = ..., eps: float = 1e-8, weight_decay: float = 1e-2, amsgrad: bool = False, maximize: bool = False) -> None: ...
243+ def load_state_dict(self, state_dict: dict[str, Any]) -> None: ...
239244 @property
240245 def lr(self) -> float: ...
246+ @property
247+ def param_groups(self) -> list[Any]: ...
241248 def set_learning_rate(self, lr: float) -> None: ...
249+ def state_dict(self) -> dict[str, Any]: ...
242250 def step(self) -> None: ...
243251 def zero_grad(self) -> None: ...
244252
@@ -5000,17 +5008,17 @@ class InformationGeometryEngine:
50005008
50015009class InstanceNorm1d:
50025010 """Applies 1D Instance Normalization."""
5003- def __init__(self, num_features: int, eps: float = 1e-05, momentum: float = 0.1, affine: bool = False) -> None: ...
5011+ def __init__(self, num_features: int, eps: float = 1e-05, momentum: float = 0.1, affine: bool = False, track_running_stats: bool = False ) -> None: ...
50045012 def forward(self, x: Any) -> Any: ...
50055013
50065014class InstanceNorm2d:
50075015 """Applies 2D Instance Normalization."""
5008- def __init__(self, num_features: int, eps: float = 1e-05, momentum: float = 0.1, affine: bool = False) -> None: ...
5016+ def __init__(self, num_features: int, eps: float = 1e-05, momentum: float = 0.1, affine: bool = False, track_running_stats: bool = False ) -> None: ...
50095017 def forward(self, x: Any) -> Any: ...
50105018
50115019class InstanceNorm3d:
50125020 """Applies 3D Instance Normalization."""
5013- def __init__(self, num_features: int, eps: float = 1e-05, momentum: float = 0.1, affine: bool = False) -> None: ...
5021+ def __init__(self, num_features: int, eps: float = 1e-05, momentum: float = 0.1, affine: bool = False, track_running_stats: bool = False ) -> None: ...
50145022 def forward(self, x: Any) -> Any: ...
50155023
50165024class IntegratedGradients:
@@ -5660,13 +5668,13 @@ class LaxKdvInverseScatteringSoliton:
56605668
56615669class LayerNorm:
56625670 """Layer normalization over dimensions (`normalized_shape` is an int or a list/tuple)."""
5663- def __init__(self, normalized_shape: Any, eps: float = 1e-5) -> None: ...
5671+ def __init__(self, normalized_shape: Any, eps: float = 1e-5, elementwise_affine: bool = True, bias: bool = True ) -> None: ...
56645672 def __call__(self, x: Tensor) -> Tensor: ...
56655673 def __repr__(self) -> str: ...
56665674 @property
5667- def bias(self) -> Tensor: ...
5675+ def bias(self) -> Optional[ Tensor] : ...
56685676 @bias.setter
5669- def bias(self, value: Tensor) -> None: ...
5677+ def bias(self, value: Optional[ Tensor] ) -> None: ...
56705678 def eval(self) -> None: ...
56715679 def forward(self, x: Tensor) -> Tensor: ...
56725680 def load_state_dict(self, state_dict: dict[str, Any], strict: bool = True) -> dict[str, Any]: ...
@@ -5677,9 +5685,9 @@ class LayerNorm:
56775685 def state_dict(self, prefix: str = "") -> dict[str, Any]: ...
56785686 def train(self, mode: bool = True) -> None: ...
56795687 @property
5680- def weight(self) -> Tensor: ...
5688+ def weight(self) -> Optional[ Tensor] : ...
56815689 @weight.setter
5682- def weight(self, value: Tensor) -> None: ...
5690+ def weight(self, value: Optional[ Tensor] ) -> None: ...
56835691 def zero_grad(self) -> None: ...
56845692
56855693class LazyBatchNorm1d:
@@ -8868,11 +8876,13 @@ class SELU:
88688876class SGD:
88698877 """Stochastic gradient descent with optional momentum and L2 weight decay."""
88708878 def __init__(self, params: list[Tensor], lr: float = 1e-2, momentum: float = 0.0, dampening: float = 0.0, weight_decay: float = 0.0, nesterov: bool = False, maximize: bool = False) -> None: ...
8879+ def load_state_dict(self, state_dict: dict[str, Any]) -> None: ...
88718880 @property
88728881 def lr(self) -> float: ...
88738882 @property
88748883 def param_groups(self) -> list[Any]: ...
88758884 def set_learning_rate(self, lr: float) -> None: ...
8885+ def state_dict(self) -> dict[str, Any]: ...
88768886 def step(self) -> None: ...
88778887 def zero_grad(self) -> None: ...
88788888
@@ -12186,13 +12196,13 @@ def chunk(input: Tensor, chunks: int, dim: int = 0) -> Any: ...
1218612196
1218712197def circular_velocity(m_central: float, r: float, g: float = 1.0) -> float: ...
1218812198
12189- def clamp(input: Tensor, min: float | None = None, max: float | None = None) -> Tensor: ...
12199+ def clamp(input: Tensor, min: Any = None, max: Any = None) -> Tensor: ...
1219012200
1219112201def clamp_max(input: Tensor, max: float) -> Tensor: ...
1219212202
1219312203def clamp_min(input: Tensor, min: float) -> Tensor: ...
1219412204
12195- def clip(input: Tensor, min: float | None = None, max: float | None = None) -> Tensor: ...
12205+ def clip(input: Tensor, min: Any = None, max: Any = None) -> Tensor: ...
1219612206
1219712207def clip_grad_norm_(parameters: Any, max_norm: float, norm_type: float = 2.0) -> float: ...
1219812208
0 commit comments