pytorch / pytorch/pytorch

AArch64 unit test failure TestFX.test_shape_prop_layout_3d

Open
#179,710 8 comments 0 reactions 0 assignees View on GitHub
module: arm module: tests triaged
Dominant language
Python
Stars
103k
Forks
29.5k
PR merge metrics
PR metrics pending

Description

### 🐛 Describe the bug

AArch64 unit test failure in text_fx.py which has been marked with an xfail

https://github.com/pytorch/pytorch/blob/0d4b18cd2556a23d655bcd63b6bb864aa8795a67/test/test_fx.py#L2060

```
Traceback (most recent call last):
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/passes/shape_prop.py", line 180, in run_node
result = super().run_node(n)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/interpreter.py", line 297, in run_node
return getattr(self, n.op)(n.target, args, kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/interpreter.py", line 431, in call_module
return submod(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 733, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 728, in _conv_forward
return F.conv3d(
RuntimeError: label is too far
----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/passes/shape_prop.py", line 180, in run_node
result = super().run_node(n)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/interpreter.py", line 297, in run_node
return getattr(self, n.op)(n.target, args, kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/interpreter.py", line 431, in call_module
return submod(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 733, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 728, in _conv_forward
return F.conv3d(
RuntimeError: label is too far
=================================== FAILURES ===================================
_______________________ TestFX.test_shape_prop_layout_3d _______________________
Traceback (most recent call last):
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/passes/shape_prop.py", line 180, in run_node
result = super().run_node(n)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/interpreter.py", line 297, in run_node
return getattr(self, n.op)(n.target, args, kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/interpreter.py", line 431, in call_module
return submod(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1778, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1789, in _call_impl
return forward_call(*args, **kwargs)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 733, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 728, in _conv_forward
return F.conv3d(
RuntimeError: std::future_error: Broken promise

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/var/lib/jenkins/workspace/test/test_fx.py", line 2069, in test_shape_prop_layout_3d
shape_prop.ShapeProp(traced_3d).propagate(x_3d)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/passes/shape_prop.py", line 230, in propagate
return super().run(*fake_args)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/interpreter.py", line 200, in run
self.env[node] = self.run_node(node)
File "/opt/conda/envs/py_3.10/lib/python3.10/site-packages/torch/fx/passes/shape_prop.py", line 185, in run_node
raise RuntimeError(
RuntimeError: ShapeProp error for: node=%conv_mod : [num_users=1] = call_module[target=conv_mod](args = (%x,), kwargs = {}) with meta={'nn_module_stack': OrderedDict([('conv_mod', ('conv_mod', ))])}

While executing %conv_mod : [num_users=1] = call_module[target=conv_mod](args = (%x,), kwargs = {})
Original traceback:
None
Use tlparse to see full graph. (https://github.com/pytorch/tlparse?tab=readme-ov-file#tlparse-parse-structured-pt2-logs)

To execute this test, run the following from the base repo dir:
python test/test_fx.py TestFX.test_shape_prop_layout_3d
```

the error `RuntimeError: label is too far` can be traced to xbayak @jondea @Sqvid

https://github.com/pytorch/pytorch/actions/runs/23853052357/job/69540195804?pr=178270 ( m8g )
and
https://github.com/pytorch/pytorch/actions/runs/23853055749/job/69541268277?pr=178270 ( m7g )

### Versions

torch-2.12.0a0+gitc6845b4

cc @mruberry @snadampal @milpuz01 @aditew01 @nikhil-arm @fadara01 @nWEIdia

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.