Skip to content

Commit

Permalink
Merge pull request #504 from brentyi:master
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 513188521
  • Loading branch information
OptaxDev committed Mar 1, 2023
2 parents 4afbd1e + 263ed54 commit 229b927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optax/_src/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ def piecewise_interpolate_schedule(
else:
boundaries, scales = (), ()

bounds = jnp.stack((0,) + boundaries)
values = jnp.cumprod(jnp.stack((init_value,) + scales))
bounds = np.stack((0,) + boundaries)
values = np.cumprod(np.stack((init_value,) + scales))
interval_sizes = bounds[1:] - bounds[:-1]

def schedule(count):
Expand Down

0 comments on commit 229b927

Please sign in to comment.