Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion big_vision/optax.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def create_schedule(mult=1.0, **kw):
# Removes weight decay updates. Note that weight decay already has an
# independent mask (which cannot be combined easily with a second mask),
# so instead we multiply updates for frozen params with zero.
optax.masked(optax.scale(0.0), frozen_mask)
optax.masked(optax.set_to_zero(), frozen_mask)
]

# Gradient clipping.
Expand Down