1
Fork 0

fix(ppo): identity function now takes 2 params, like message_passer

This commit is contained in:
Robin Meersman 2026-05-07 14:07:19 +02:00
parent 517c3134ca
commit 4e3cd0c673

View file

@ -190,7 +190,7 @@ def ppo_loss(
return loss, (pg_loss, v_loss, entropy_loss, jax.lax.stop_gradient(approx_kl))
def identity(hidden):
def identity(_, hidden):
"""
Used for seamless jax integration,
avoids having branching inside jitted function,