Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
micsama committed Sep 25, 2024
1 parent 9f3e9b2 commit 84fed4d
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 84fed4d

Please sign in to comment.