Skip to content

Commit 9e9815c

Browse files
authored
Tests failing for exp op in xnnpack
Differential Revision: D76283309 Pull Request resolved: #11498
1 parent 68c58e5 commit 9e9815c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

backends/xnnpack/partition/config/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
DeQuantizedPerTensorConfig,
2727
DivConfig,
2828
# EluConfig,
29-
ExpConfig,
29+
# ExpConfig, # Bug in XNNPACK with exp op
3030
FloorConfig,
3131
GeluConfig,
3232
HardswishConfig,
@@ -81,7 +81,7 @@
8181
ClampConfig,
8282
DivConfig,
8383
# EluConfig, # Waiting for PyTorch Pin Update
84-
ExpConfig,
84+
# ExpConfig, # Bug in XNNPACK with exp op
8585
FloorConfig,
8686
GeluConfig,
8787
HardtanhConfig,

backends/xnnpack/partition/configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
exir_ops.edge.aten.sigmoid.default,
6060
exir_ops.edge.aten._softmax.default,
6161
exir_ops.edge.aten.cat.default,
62-
exir_ops.edge.aten.exp.default,
62+
# exir_ops.edge.aten.exp.default, # Bug in XNNPACK with exp op
6363
exir_ops.edge.aten.elu.default,
6464
exir_ops.edge.aten.avg_pool2d.default,
6565
exir_ops.edge.aten.leaky_relu.default,

backends/xnnpack/test/ops/test_exp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@ def run_exp_test(self, inputs):
3434
.run_method_and_compare_outputs()
3535
)
3636

37+
@unittest.skip("D76283309, bug to fix")
3738
def test_fp16_exp(self):
3839
inputs = (torch.randn(20).to(torch.float16),)
3940
self.run_exp_test(inputs)
4041

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

0 commit comments

Comments
 (0)