Skip to content

Commit 3b92b67

Browse files
authored
Update nn.py to use jnp.add rather than + operand. (#19323)
1 parent 0e7610e commit 3b92b67

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
@@ -583,7 +583,7 @@ def batch_normalization(
583583
offset = jnp.reshape(offset, shape)
584584
res = res + offset
585585

586-
return x * inv + res
586+
return jnp.add(x * inv, res)
587587

588588

589589
def ctc_loss(

0 commit comments

Comments
 (0)