Skip to content

Commit

Permalink
fix adaprop bug
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 605118713
  • Loading branch information
init2winit Team authored and copybara-github committed Feb 7, 2024
1 parent d32e5a9 commit a3c361c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init2winit/optimizer_lib/kitchen_sink/_src/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ def init_fn(params):
lambda p: jnp.zeros_like(p, dtype=quantized_dtype), params
)
gain = jax.tree_map(
lambda p: jnp.ones_like(p, dtype=quantized_dtype), params
lambda p: jnp.zeros_like(p, dtype=quantized_dtype), params
)

return ScaleByAdapropState(
Expand Down Expand Up @@ -1788,7 +1788,7 @@ def project_parameters_by_norm(
Args:
projection_radius: The norm of the projected parameters.
order: Order of the norm used for projection. Default is None, i.e. 2.
axis: Axes along which the projection happens.
axis: Axes along which the projection happens.
Default is None, i.e. the entire parameter is projected.
flip_update_sign:
Expand Down

0 comments on commit a3c361c

Please sign in to comment.