[GPU] Small fix for dynamic_shape_gather_opts pass (#21807)

This commit is contained in:
Roman Lyamin 2023-12-21 11:42:03 +04:00 committed by GitHub
parent 12a9d55c3e
commit 0709a35cb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ void dynamic_shape_gather_opts::run(program& p) {
continue; continue;
auto idx_rank = impl_params->get_input_layout(1).get_partial_shape().size(); auto idx_rank = impl_params->get_input_layout(1).get_partial_shape().size();
if (idx_rank > 1) { if (idx_rank != 1) {
continue; continue;
} }
auto axis = impl_params->typed_desc<gather>()->axis; auto axis = impl_params->typed_desc<gather>()->axis;