Skip to content

dtypes not align with OpInfo #2301

@daisyden

Description

@daisyden

🐛 Describe the bug

Cases:
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_dtypes_einsum_xpu
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_dtypes_inner_xpu
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_python_ref__refs_true_divide_xpu_complex32
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_dtypes_linalg_lu_factor_ex_xpu
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_dtypes_mm_xpu
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_python_ref_executor__refs_true_divide_executor_aten_xpu_complex32
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_dtypes_nn_functional_embedding_bag_xpu
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_dtypes_nn_functional_linear_xpu
op_ut,third_party.torch-xpu-ops.test.xpu.test_ops_xpu.TestCommonXPU,test_dtypes_tensordot_xpu

test_dtypes.log

2025-11-06T16:50:44.5399522Z _____________________ TestCommonXPU.test_dtypes_inner_xpu ______________________
2025-11-06T16:50:44.5399839Z [gw0] linux -- Python 3.10.19 /tmp/xpu-tool/Python/3.10.19/x64/bin/python
2025-11-06T16:50:44.5400096Z Traceback (most recent call last):
2025-11-06T16:50:44.5400514Z   File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1151, in test_wrapper
2025-11-06T16:50:44.5400914Z     return test(*args, **kwargs)
2025-11-06T16:50:44.5401304Z   File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1231, in dep_fn
2025-11-06T16:50:44.5401735Z     return fn(slf, *args, **kwargs)
2025-11-06T16:50:44.5402134Z   File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1490, in only_fn
2025-11-06T16:50:44.5402520Z     return fn(self, *args, **kwargs)
2025-11-06T16:50:44.5402918Z   File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/test_ops.py", line 1802, in test_dtypes
2025-11-06T16:50:44.5403292Z     self.fail(msg)
2025-11-06T16:50:44.5403564Z   File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/unittest/case.py", line 675, in fail
2025-11-06T16:50:44.5403872Z     raise self.failureException(msg)
2025-11-06T16:50:44.5404161Z AssertionError: The supported dtypes for inner on device type xpu are incorrect!
2025-11-06T16:50:44.5404626Z The following dtypes worked in forward but are not listed by the OpInfo: {torch.int64, torch.uint8, torch.int8, torch.int16, torch.int32}.
025-11-06T16:50:43.7088676Z _____________________ TestCommonXPU.test_dtypes_einsum_xpu _____________________
2025-11-06T16:50:43.7088812Z [gw0] linux -- Python 3.10.19 /tmp/xpu-tool/Python/3.10.19/x64/bin/python
2025-11-06T16:50:43.7088906Z Traceback (most recent call last):
2025-11-06T16:50:43.7089208Z   File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1151, in test_wrapper
2025-11-06T16:50:43.7089300Z     return test(*args, **kwargs)
2025-11-06T16:50:43.7089578Z   File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1231, in dep_fn
2025-11-06T16:50:43.7089671Z     return fn(slf, *args, **kwargs)
2025-11-06T16:50:43.7089953Z   File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1490, in only_fn
2025-11-06T16:50:43.7090069Z     return fn(self, *args, **kwargs)
2025-11-06T16:50:43.7090351Z   File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/test_ops.py", line 1802, in test_dtypes
2025-11-06T16:50:43.7090437Z     self.fail(msg)
2025-11-06T16:50:43.7090622Z   File "/tmp/xpu-tool/Python/3.10.19/x64/lib/python3.10/unittest/case.py", line 675, in fail
2025-11-06T16:50:43.7090728Z     raise self.failureException(msg)
2025-11-06T16:50:43.7090896Z AssertionError: The supported dtypes for einsum on device type xpu are incorrect!
2025-11-06T16:50:43.7091091Z The following dtypes worked in forward but are not listed by the OpInfo: {torch.int8, torch.uint8}.
2025-11-06T16:50:43.7091109Z 
2025-11-06T16:50:43.7091112Z 

Versions

main

Metadata

Metadata

Assignees

Labels

skippedUsed for temp UT failure to parallel fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions