pytorch / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://pytorch.org
Other
84.07k stars 22.67k forks source link

[inductor][cpu]LoweringException: AttributeError: 'NoneType' object has no attribute 'get_origin_node' in 2024-04-20 nightly release #124844

Closed zxd1997066 closed 6 months ago

zxd1997066 commented 6 months ago

🐛 Describe the bug

AMP dynamic shape default wrapper

suite name thread accuracy perf reason(reference only)
timm_models botnet26t_256 multiple X N/A botnet26t_256, LoweringException: AttributeError: 'NoneType' object has no attribute 'get_origin_node'
timm_models cait_m36_384 multiple X N/A cait_m36_384, LoweringException: AttributeError: 'NoneType' object has no attribute 'get_origin_node'
timm_models eca_botnext26ts_256 multiple X N/A eca_botnext26ts_256, LoweringException: AttributeError: 'NoneType' object has no attribute 'get_origin_node'
timm_models eca_halonext26ts multiple X N/A eca_halonext26ts, LoweringException: AttributeError: 'NoneType' object has no attribute 'get_origin_node'
timm_models sebotnet33ts_256 multiple X N/A sebotnet33ts_256, LoweringException: AttributeError: 'NoneType' object has no attribute 'get_origin_node'

SW info

name target_branch target_commit refer_branch refer_commit
torchbench main d6015d42 main d6015d42
torch main bad8d25881d850eaf0b326f6ce5c78305e38c001 main 88a71594933b2464d9d8b6b3533c5a945a4ac2ff
torchvision main 0.19.0a0+2c4665f main 0.19.0a0+2c4665f
torchtext main 0.16.0a0+b0ebddc main 0.16.0a0+b0ebddc
torchaudio main 2.2.0a0+ea437b3 main 2.2.0a0+ea437b3
torchdata main 0.7.1a0+0790338 main 0.7.1a0+0790338
dynamo_benchmarks main nightly main nightly
Repro: [inductor_single_run.sh](https://github.com/chuanqi129/inductor-tools/blob/main/scripts/modelbench/inductor_single_run.sh) bash inductor_single_run.sh thread inference accuracy/performance suite model amp first dynamic Suspected guilty commit: https://github.com/pytorch/pytorch/commit/78f3b99a94659d1d14e28f6271e123cc48dcef71 [timm_models-eca_halonext26ts-inference-amp-dynamic-default-multiple-accuracy-crash_guilty_commit.log](https://github.com/pytorch/pytorch/files/15096000/timm_models-eca_halonext26ts-inference-amp-dynamic-default-multiple-accuracy-crash_guilty_commit.log) cc @ezyang @msaroufim @bdhirsh @anijain2305 @chauhang @WeizhuoZhang-intel @chuanqi129
jiayisunx commented 6 months ago

This issue cannot be reproduced with the latest PyTorch, @zxd1997066 please try again with the latest PyTorch.

zxd1997066 commented 6 months ago

The issue is fixed in the latest report.