Skip to content
Open
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
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