mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-06-01 13:44:07 +08:00
Fix pytype failures related to teaching pytype about NumPy scalar types.
PiperOrigin-RevId: 519205179
This commit is contained in:
committed by
Saran Tunyasuvunakool
parent
e2d21540e8
commit
82a347438f
@@ -135,7 +135,7 @@ def add_weight_decay(
|
||||
new_updates = _partial_update(updates, new_updates, params, filter_fn)
|
||||
return new_updates, state
|
||||
|
||||
return optax.GradientTransformation(init_fn, update_fn)
|
||||
return optax.GradientTransformation(init_fn, update_fn) # pytype: disable=wrong-arg-types # numpy-scalars
|
||||
|
||||
|
||||
LarsState = List # Type for the lars optimizer
|
||||
|
||||
Reference in New Issue
Block a user