We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c76ea commit 1c6f5aaCopy full SHA for 1c6f5aa
big_vision/optax.py
@@ -68,7 +68,7 @@ def create_schedule(mult=1.0, **kw):
68
# Removes weight decay updates. Note that weight decay already has an
69
# independent mask (which cannot be combined easily with a second mask),
70
# so instead we multiply updates for frozen params with zero.
71
- optax.masked(optax.scale(0.0), frozen_mask)
+ optax.masked(optax.set_to_zero(), frozen_mask)
72
]
73
74
# Gradient clipping.
0 commit comments