Closed
test(export): add NPU adaptation for torch.compiler.is_exporting testcase #42197
makun-2026Add on Jul 20Closed at Aug 17
test(export): add NPU adaptation for torch.compiler.is_exporting testcase #42197
Closed
makun-2026Add on Jul 20Closed at Aug 17
Total: 1 files changed+12-1
@@ -1,7 +1,18 @@
1diff --git a/test/export/test_export.py b/test/export/test_export.py1diff --git a/test/export/test_export.py b/test/export/test_export.py
2-index c7e70ad..4c0aa5c 1007552+index c7e70ad..7b18e86 100755
3--- a/test/export/test_export.py3--- a/test/export/test_export.py
4+++ b/test/export/test_export.py4+++ b/test/export/test_export.py
5+@@ -2571,8 +2571,8 @@ def forward(self, p_linear_weight, p_linear_bias, x):
6+ ep = export(
7+ Mod(),
8+ (
9+- torch.tensor(False),
10+- torch.randn(3, 4),
11++ torch.tensor(False).npu(),
12++ torch.randn(3, 4).npu(),
13+ ),
14+ )
15+ FileCheck().check_count("torch.ops.aten.sin", 1, exactly=True).run(
5@@ -6559,7 +6559,7 @@ def forward(self, b_a_buffer, x):16@@ -6559,7 +6559,7 @@ def forward(self, b_a_buffer, x):
6 @testing.expectedFailureCppRuntime17 @testing.expectedFailureCppRuntime
7 def test_export_associative_scan_symbol_dim(self):18 def test_export_associative_scan_symbol_dim(self):