mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Update lamp.py comment
This commit is contained in:
parent
4d284017b8
commit
8f68193c91
@ -169,7 +169,7 @@ class Lamb(Optimizer):
|
|||||||
trust_ratio = one_tensor
|
trust_ratio = one_tensor
|
||||||
if weight_decay != 0 or group['use_nvlamb']:
|
if weight_decay != 0 or group['use_nvlamb']:
|
||||||
# Layer adaptation. By default, skip layer adaptation on parameters that are
|
# Layer adaptation. By default, skip layer adaptation on parameters that are
|
||||||
# excluded from weight norm, unless use_nvlamb == True, then always enabled.
|
# excluded from weight decay, unless use_nvlamb == True, then always enabled.
|
||||||
w_norm = p.data.norm(2.0)
|
w_norm = p.data.norm(2.0)
|
||||||
g_norm = update.norm(2.0)
|
g_norm = update.norm(2.0)
|
||||||
trust_ratio = torch.where(
|
trust_ratio = torch.where(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user