[Bug Skip]: UT failures 2026-6-8
- Dominant language
- Python
- Stars
- 113
- Forks
- 128
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 107
Description
### 🐛 Describe the bug with skip template
Cases:
~~op_ut,third_party.torch-xpu-ops.test.xpu.dynamo.test_wrap_inductor_compiled_regions_xpu.TestWrapInductorCompiledRegions,test_wrap_config_affects_cache_key~~
~~op_ut,,third_party.torch-xpu-ops.test.xpu.test_binary_ufuncs_xpu~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_decomp_xpu.TestDecompXPU,test_quick_core_backward__unsafe_masked_index_xpu_float64~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_decomp_xpu.TestDecompXPU,test_comprehensive_grid_sampler_2d_xpu_float32~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_decomp_xpu.TestDecompXPU,test_quick_core_backward_clamp_max_xpu_float64~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_decomp_xpu.TestDecompXPU,test_comprehensive_grid_sampler_2d_xpu_float64~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_decomp_xpu.TestDecompXPU,test_quick_core_backward_clamp_min_xpu_float64~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_linalg_xpu.TestLinalgXPU,test_eigh_errors_and_warnings_xpu_complex64~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_torch_xpu.TestTorchDeviceTypeXPU,test_cumsum_outer_dim_64bit_indexing_xpu~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_torch_xpu.TestTorch,test_unflatten~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.test_torch_xpu.TestTorchDeviceTypeXPU,test_int64_upsample3d_xpu_bfloat16~~
~~op_ut,third_party.torch-xpu-ops.test.xpu.export.test_retraceability_xpu.RetraceExportTestExport,test_dynamic_lstm_retraceability_strict~~
## ErrorLog
### AssertionError: Scalars are not equal!
```bash
______ TestWrapInductorCompiledRegions.test_wrap_config_affects_cache_key ______
[gw10] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/dynamo/test_wrap_inductor_compiled_regions_xpu.py", line 431, in test_wrap_config_affects_cache_key
self.assertEqual(counters["aot_autograd"]["autograd_cache_miss"], 2)
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/test_case.py", line 128, in assertEqual
return super().assertEqual(x, y, *args, **kwargs)
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 4571, in assertEqual
raise error_metas.pop()[0].to_error( # type: ignore[index]
AssertionError: Scalars are not equal!
__________ TestLinalgXPU.test_eigh_errors_and_warnings_xpu_complex64 ___________
[gw5] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/../../../../test/test_linalg.py", line 1093, in test_eigh_errors_and_warnings
self.assertEqual(len(w), 2)
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 4571, in assertEqual
raise error_metas.pop()[0].to_error( # type: ignore[index]
AssertionError: Scalars are not equal!
_______ TestTorchDeviceTypeXPU.test_cumsum_outer_dim_64bit_indexing_xpu ________
[gw6] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_torch_xpu.py", line 2191, in test_cumsum_outer_dim_64bit_indexing
self.assertEqual(cumsum.max().item(), 0.0, atol=0.0, rtol=0.0)
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_utils.py", line 4571, in assertEqual
raise error_metas.pop()[0].to_error( # type: ignore[index]
AssertionError: Scalars are not equal!
```
### RuntimeError: Expected output.numel() <= std::numeric_limits::max() to be true, but got false.
```bash
__________ TestTorchDeviceTypeXPU.test_int64_upsample3d_xpu_bfloat16 ___________
[gw8] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_torch_xpu.py", line 354, in test_int64_upsample3d
torch.nn.functional.interpolate(x, scale_factor=2, mode="nearest")
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/nn/functional.py", line 5172, in interpolate
return torch._C._nn.upsample_nearest3d(input, output_size, scale_factors)
RuntimeError: Expected output.numel() <= std::numeric_limits::max() to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_torch_xpu.py", line 356, in test_int64_upsample3d
self.fail(f"Unexpected exception raised: {e}")
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/unittest/case.py", line 675, in fail
raise self.failureException(msg)
AssertionError: Unexpected exception raised: Expected output.numel() <= std::numeric_limits::max() to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
```
### Crashed worker
```bash
____________ third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py _____________
[gw19] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
worker 'gw19' crashed while running 'third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py::TestDecompXPU::test_quick_core_backward__unsafe_masked_index_xpu_float64'
____________ third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py _____________
[gw21] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
worker 'gw21' crashed while running 'third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py::TestDecompXPU::test_comprehensive_grid_sampler_2d_xpu_float32'
____________ third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py _____________
[gw22] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
worker 'gw22' crashed while running 'third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py::TestDecompXPU::test_quick_core_backward_logaddexp_xpu_float64'
____________ third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py _____________
[gw24] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
worker 'gw24' crashed while running 'third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py::TestDecompXPU::test_quick_core_backward_clamp_max_xpu_float64'
____________ third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py _____________
[gw30] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
worker 'gw30' crashed while running 'third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py::TestDecompXPU::test_comprehensive_grid_sampler_2d_xpu_float64'
____________ third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py _____________
[gw31] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
worker 'gw31' crashed while running 'third_party/torch-xpu-ops/test/xpu/test_decomp_xpu.py::TestDecompXPU::test_quick_core_backward_clamp_min_xpu_float64'
```
### AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
```bash
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
_ ERROR collecting third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py _
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_binary_ufuncs_xpu.py", line 26, in
instantiate_device_type_tests(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/testing/_internal/common_device_type.py", line 1021, in instantiate_device_type_tests
del scope[generic_test_class.__name__]
AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
- generated xml file: /__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/op_ut_with_skip.test_binary_ufuncs_xpu.xml -
=========================== short test summary info ============================
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
ERROR test_binary_ufuncs_xpu.py - AttributeError: 'NoneType' object has no attribute '__name__'. Did you mean: '__ne__'?
```
### TypeError: unflatten(): argument 'dim' (position 1) must be int, not str
```bash
___________________________ TestTorch.test_unflatten ___________________________
[gw3] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
Traceback (most recent call last):
File "/__w/torch-xpu-ops/torch-xpu-ops/pytorch/third_party/torch-xpu-ops/test/xpu/test_torch_xpu.py", line 8158, in test_unflatten
torch.ones(4).unflatten("A", (("A", 2), ("B", 2)))
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_tensor.py", line 1356, in unflatten
return super().unflatten(dim, sizes)
TypeError: unflatten(): argument 'dim' (position 1) must be int, not str
```
### torch.fx.experimental.symbolic_shapes.ConstraintViolationError: Constraints violated (L['x'].size()[0])! For more information, run with TORCH_LOGS="+dynamic".
```bash
_______ RetraceExportTestExport.test_dynamic_lstm_retraceability_strict ________
[gw4] linux -- Python 3.10.20 /tmp/xpu-tool/Python/3.10.20/x64/bin/python
Traceback (most recent call last):
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/export/_trace.py", line 917, in _export_to_torch_ir
gm_torch_level = dynamo_graph_capture(*args, **kwargs)
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/functional_export.py", line 988, in inner
_suggest_or_raise_constraint_violation(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/functional_export.py", line 500, in _suggest_or_raise_constraint_violation
raise constraint_violation_error
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/functional_export.py", line 448, in _suggest_or_raise_constraint_violation
graph_capture_output.graph_capture_output.build_guards(fn.__code__)
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/convert_frame.py", line 1190, in build_guards
return CheckFunctionManager(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/guards.py", line 4461, in __init__
builder, guard_manager = self.build_guards(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/guards.py", line 4773, in build_guards
guard.create(builder)
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_guards.py", line 373, in create
return self.create_fn(builder, self)
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/guards.py", line 3286, in SHAPE_ENV
python_code_parts, verbose_code_parts = _get_code_parts(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/_dynamo/guards.py", line 3259, in _get_code_parts
return output_graph.shape_env.produce_guards_verbose(
File "/tmp/xpu-tool/Python/3.10.20/x64/lib/python3.10/site-packages/torch/fx/experimental/symbolic_shapes.py", line 6710, in produce_guards_verbose
raise ConstraintViolationError(
torch.fx.experimental.symbolic_shapes.ConstraintViolationError: Constraints violated (L['x'].size()[0])! For more information, run with TORCH_LOGS="+dynamic".
- You marked L['x'].size()[0] as dynamic but your code specialized it to be a constant (32). If you're using mark_dynamic, either remove it or use maybe_mark_dynamic. If you're using Dim.DYNAMIC, replace it with either Dim.STATIC or Dim.AUTO.
```
### Pytorch Version
5ccbc722e609cd583e851360801489e44a0032e5
### Versions
Detail
Collecting environment information...
PyTorch version: 2.13.0a0+git5ccbc72
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A
OS: Ubuntu 24.04.4 LTS (x86_64)
GCC version: (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0
Clang version: Could not collect
CMake version: version 3.31.6
Libc version: glibc-2.39
Python version: 3.10.20 (main, Mar 3 2026, 15:36:40) [GCC 13.3.0] (64-bit runtime)
Python platform: Linux-6.8.0-110-generic-x86_64-with-glibc2.39
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
Is XPU available: True
XPU used to build PyTorch: 20260000
Intel GPU driver version:
* libze1: 1.24.0.0-1146~24.04
* intel-opencl-icd: 25.18.33578.51-1146~24.04
Intel GPU models onboard:
* Intel(R) Data Center GPU Max 1550
* Intel(R) Data Center GPU Max 1550
* Intel(R) Data Center GPU Max 1550
L3 cache: 195 MiB (2 instances)
NUMA node(s): 2
NUMA node0 CPU(s): 0-47,96-143
NUMA node1 CPU(s): 48-95,144-191
Vulnerability Gather data sampling: Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Enhanced / Automatic IBRS; IBPB conditional; PBRSB-eIBRS SW sequence; BHI BHI_DIS_S
Vulnerability Srbds: Not affected
Vulnerability Tsa: Not affected
Vulnerability Tsx async abort: Not affected
Vulnerability Vmscape: Mitigation; IBPB before exit to userspace
Versions of relevant libraries:
[pip3] dpcpp-cpp-rt==2026.0.0
[pip3] impi-rt==2021.18.0
[pip3] intel-cmplr-lib-rt==2026.0.0
[pip3] intel-cmplr-lib-ur==2026.0.0
[pip3] intel-cmplr-lic-rt==2026.0.0
[pip3] intel-opencl-rt==2026.0.0
[pip3] intel-openmp==2026.0.0
[pip3] intel-pti==0.17.0
[pip3] intel-sycl-rt==2026.0.0
[pip3] mkl==2026.0.0
[pip3] mypy==1.16.0
[pip3] mypy_extensions==1.1.0
[pip3] numpy==1.24.4
[pip3] nvidia-cuda-cupti==13.3.35
[pip3] oneccl==2022.0.0
[pip3] oneccl-devel==2022.0.0
[pip3] onemkl-license==2026.0.0
[pip3] onemkl-sycl-blas==2026.0.0
[pip3] onemkl-sycl-dft==2026.0.0
[pip3] onemkl-sycl-lapack==2026.0.0
[pip3] onemkl-sycl-rng==2026.0.0
[pip3] onemkl-sycl-sparse==2026.0.0
[pip3] onnx==1.21.0
[pip3] onnx-ir==0.1.16
[pip3] onnxscript==0.6.2
[pip3] optree==0.13.0
[pip3] tbb==2023.0.0
[pip3] tcmlib==1.5.0
[pip3] torch==2.13.0a0+git5ccbc72
[pip3] torchao==0.18.0.dev20260608+xpu
[pip3] torchaudio==2.11.0a0+c0cbdb9
[pip3] torchvision==0.27.0a0+499ca51
[pip3] triton-xpu==3.7.2+git5fcc14d9
[pip3] umf==1.1.0
[conda] No relevant packages
Contributor guide
Assessment
This issue has not been assessed yet.