Skip to content

Commit 43ebddf

Browse files
committed
Update nn.py to use jnp.add rather than + operand.
1 parent 838c7da commit 43ebddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras/backend/jax/nn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def batch_normalization(
546546
offset = jnp.reshape(offset, shape)
547547
res = res + offset
548548

549-
return x * inv + res
549+
return jnp.add(x * inv, res)
550550

551551

552552
def ctc_loss(

0 commit comments

Comments
 (0)