Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions backends/arm/_passes/decompose_layernorm_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ def call(self, graph_module: torch.fx.GraphModule):
args = node.args
meta = node.meta
match len(args):
case 6:
# torch.ops.aten.layer_norm.default has 6 args:
# (input, normalized_shape, weight, bias, eps, cudnn_enable)
# cudnn_enable is not used in the decomposition
x, normalized_shape, weights, bias, epsilon, _cudnn_enable = args
case 5:
x, normalized_shape, weights, bias, epsilon = args
case 4:
Expand Down
2 changes: 1 addition & 1 deletion backends/arm/test/targets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def define_arm_tests():
"ops/test_avg_pool2d.py",
"ops/test_cat.py",
"ops/test_conv2d.py",
"ops/test_linear.py",
"ops/test_linear.py",
"ops/test_mul.py",
"ops/test_permute.py",
"ops/test_rsqrt.py",
Expand Down
Loading