optax.ScaleByAmsgradState