openvino
8081a5a2 - [GPU] Fix crop+reshape buffer fusing for indivisible padding (#35772)

Commit
18 days ago
[GPU] Fix crop+reshape buffer fusing for indivisible padding (#35772) ### Details: - When VariadicSplit (crop) is followed by Reshape, the in-place buffer fusing optimization divides crop padding values by a divider derived from the reshape dimensions. If the padding is not evenly divisible (e.g. upper_pad=25, divider=8 → 25/8=3 truncated), the reshape reads from wrong buffer offsets, causing silent data corruption. - Add a divisibility check in update_in_place_crop_padding_simple_data_format: if lower_pad % divider != 0 or upper_pad % divider != 0, return false to disable the in-place optimization and force a data copy instead. - The fix covers both compile-time (prepare_buffer_fusing pass) and runtime (do_runtime_in_place_crop) code paths. ### Tickets: - 185852 ### AI Assistance: - *AI assistance used: yes* - *If yes, summarize how AI was used and what human validation was performed (build/tests/manual checks).* AI created fix candidates, test cases, manual check by human.
Author
Parents
Loading