Skip to content

Commit 24b506e

Browse files
committed
fix
1 parent b32a3c1 commit 24b506e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • onnxscript/function_libs/torch_lib/ops

onnxscript/function_libs/torch_lib/ops/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
UINT32,
3232
UINT64,
3333
graph,
34+
ir,
3435
)
3536
from onnxscript.function_libs.torch_lib.ops import common as common_ops
3637
from onnxscript.function_libs.torch_lib.registration import torch_op
@@ -4752,7 +4753,7 @@ def aten_layer_norm(
47524753
one = op.Constant(value=ir.tensor(1, dtype=input.dtype))
47534754
weight = op.Expand(one, op.Shape(input, start=start_axis))
47544755

4755-
result, _, _ = op.LayerNormalization(input, weight, bias, axis=axis, epsilon=eps)
4756+
result, _, _ = op.LayerNormalization(input, weight, bias, axis=start_axis, epsilon=eps)
47564757
return result
47574758

47584759

0 commit comments

Comments
 (0)