Skip to content

Commit 255d2ed

Browse files
committed
refactor: SAM
1 parent f5027b1 commit 255d2ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch_optimizer/sam.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ def __init__(
5757
adaptive: bool = False,
5858
**kwargs,
5959
):
60-
"""
60+
"""SAM
6161
:param params: PARAMETERS. iterable of parameters to optimize or dicts defining parameter groups
62-
:param base_optimizer: Optimizer.
62+
:param base_optimizer: Optimizer. base optimizer
6363
:param rho: float. size of the neighborhood for computing the max loss
6464
:param adaptive: bool. element-wise Adaptive SAM
6565
:param kwargs: Dict. parameters for optimizer.

0 commit comments

Comments
 (0)