Skip to content

Commit

Permalink
update unitest
Browse files Browse the repository at this point in the history
  • Loading branch information
JZ-LIANG committed Nov 10, 2023
1 parent 39b3b9e commit 5485b41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/xpu/test_layer_norm_op_xpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def ref_layer_norm(x, scale, bias, epsilon, begin_norm_axis=1):
if bias is not None:
y = y + bias.reshape([1, right])
x.shape, y.shape = x_shape, x_shape
mean.shape = x_shape[0:begin_norm_axis]
variance.shape = x_shape[0:begin_norm_axis]
return y, mean, variance


Expand Down

0 comments on commit 5485b41

Please sign in to comment.