fix(ppo): identity function now takes 2 params, like message_passer
This commit is contained in:
parent
517c3134ca
commit
4e3cd0c673
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Reference in a new issue