[GPU] Fix dynamic layout calling of get_dims() in prepare_buffer_fusing #33108
+53
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Details
Description of the issue
Symptom
E2E test for Pytorch_YoloV9_api_2_True will be failed at "get_dims()" for "__module.model.22/aten::cat/Concat_4" node during prepare_buffer_fusing pass.
Root cause
"__module.model.22/aten::cat/Concat_4" node has 2 dependent nodes as its inputs. The layout of 1 of the dependent node is dynamic and used to call "get_dims()", which caused the issue.
How to fix it
The concat_axis dim in dims is not dynamic, and can be used to get_length().
The code and line that caused this issue
openvino/src/plugins/intel_gpu/src/graph/graph_optimizer/prepare_buffer_fusing.cpp
Line 323 in 4d25dd6
Reproduction step and snapshot
python -m pytest test_ovc_mo.py --tb=native --env_conf=.automation/env_config.yml --test_conf=test_config_local.yml -m "not launch_only_if_manually_specified " --pregen_irs=python_api_serialized/irs_mapping.csv --tf_models_version=1.15.2 --modules pipelines/production/pytorch/heavy/yolov9.py -k "Pytorch_YoloV9_api_2_True" --dynamism_type=NoneProblematic graph
Checklist
Tickets: