Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f175a87
Add exception to float->int conversion test case
Sep 24, 2025
f84569c
Update test/xpu/test_tensor_creation_ops_xpu.py
ppapierk Sep 24, 2025
b9d8c8a
Merge branch 'main' into ppapierk-test-creation-ops
tadkrawiec Sep 25, 2025
6ce2fb2
.
Sep 25, 2025
28e6d4a
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Sep 26, 2025
6f3d6df
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Sep 29, 2025
1721746
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Sep 30, 2025
0fac69e
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 9, 2025
ddcc1aa
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 14, 2025
47dfa68
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 15, 2025
842ac71
Test unskipped
Oct 15, 2025
137f273
Merge branch 'main' into ppapierk-test-creation-ops
mengfei25 Oct 16, 2025
ce1fc08
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 16, 2025
44948ad
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 20, 2025
8a70ebc
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 22, 2025
0bef183
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 23, 2025
3869726
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 23, 2025
c2af3ce
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 24, 2025
d5af292
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 27, 2025
6d50c0b
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 28, 2025
3cea2f0
Merge branch 'main' into ppapierk-test-creation-ops
ppapierk Oct 29, 2025
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
3 changes: 0 additions & 3 deletions test/xpu/skip_list_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,6 @@
"nn/test_dropout_xpu.py": None,
"test_dataloader_xpu.py": None,
"test_tensor_creation_ops_xpu.py": (
# CPU only (vs Numpy). CUDA skips these cases since non-deterministic results are outputed for inf and nan.
"test_float_to_int_conversion_finite_xpu_int8",
"test_float_to_int_conversion_finite_xpu_int16",
# Dispatch issue. It is a composite operator. But it is implemented by
# DispatchStub. XPU doesn't support DispatchStub.
"test_kaiser_window_xpu",
Expand Down
4 changes: 3 additions & 1 deletion test/xpu/test_tensor_creation_ops_xpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1226,8 +1226,10 @@ def test_float_to_int_conversion_finite(self, device, dtype):
vals = (min, -2, -1.5, -0.5, 0, 0.5, 1.5, 2, max)
refs = None
if self.device_type == "cuda" or self.device_type == "xpu":
if torch.version.hip:
if torch.version.hip or torch.version.xpu:
# HIP min float -> int64 conversion is divergent
# XPU min float -> int8 conversion is divergent
# XPU min float -> int16 conversion is divergent
vals = (-2, -1.5, -0.5, 0, 0.5, 1.5, 2)
else:
vals = (min, -2, -1.5, -0.5, 0, 0.5, 1.5, 2)
Expand Down
Loading