Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Sep 22, 2023
1 parent 0c46f00 commit 44adbc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainpy/_src/dnn/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ def update(self, x):
x = (x - mean) * lax.rsqrt(var + lax.convert_element_type(self.epsilon, x.dtype))
x = x.reshape(origin_shape)
if self.affine:
x = x * lax.broadcast_to_rank(self.scale, origin_dim)
x = x + lax.broadcast_to_rank(self.bias, origin_dim)
x = x * lax.broadcast_to_rank(self.scale.value, origin_dim)
x = x + lax.broadcast_to_rank(self.bias.value, origin_dim)
return x


Expand Down

0 comments on commit 44adbc4

Please sign in to comment.