Skip to content

Commit

Permalink
fix:paddle._C_ops.layer_norm()
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji Xing authored and Ji Xing committed Sep 24, 2024
1 parent 9f3e9b2 commit e226e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddleslim/nas/ofa/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ def forward(self, input):
self.cur_config = {'prune_dim': feature_dim}

if paddle.in_dynamic_mode():
out, _, _ = paddle._C_ops.layer_norm(
out = paddle._C_ops.layer_norm(
input, weight, bias, self._epsilon, begin_norm_axis, False)
else:
paddle.common_ops_import.check_variable_and_dtype(
Expand Down

0 comments on commit e226e78

Please sign in to comment.