Skip to content

Tests failing for exp op in xnnpack #11498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 10, 2025
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
4 changes: 2 additions & 2 deletions backends/xnnpack/partition/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
DeQuantizedPerTensorConfig,
DivConfig,
# EluConfig,
ExpConfig,
# ExpConfig, # Bug in XNNPACK with exp op
FloorConfig,
GeluConfig,
HardswishConfig,
Expand Down Expand Up @@ -81,7 +81,7 @@
ClampConfig,
DivConfig,
# EluConfig, # Waiting for PyTorch Pin Update
ExpConfig,
# ExpConfig, # Bug in XNNPACK with exp op
FloorConfig,
GeluConfig,
HardtanhConfig,
Expand Down
2 changes: 1 addition & 1 deletion backends/xnnpack/partition/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
exir_ops.edge.aten.sigmoid.default,
exir_ops.edge.aten._softmax.default,
exir_ops.edge.aten.cat.default,
exir_ops.edge.aten.exp.default,
# exir_ops.edge.aten.exp.default, # Bug in XNNPACK with exp op
exir_ops.edge.aten.elu.default,
exir_ops.edge.aten.avg_pool2d.default,
exir_ops.edge.aten.leaky_relu.default,
Expand Down
2 changes: 2 additions & 0 deletions backends/xnnpack/test/ops/test_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,12 @@ def run_exp_test(self, inputs):
.run_method_and_compare_outputs()
)

@unittest.skip("D76283309, bug to fix")
def test_fp16_exp(self):
inputs = (torch.randn(20).to(torch.float16),)
self.run_exp_test(inputs)

@unittest.skip("D76283309, bug to fix")
def test_fp32_exp(self):
inputs = (torch.randn(20),)
self.run_exp_test(inputs)