Skip to content

[GPU] Fixed the issue with incorrect Gather+Eltwise results. #31139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

xipingyan
Copy link
Contributor

Details:

  • Reduce limitation to meet mobilesam prompt encoder model.

Tickets:

  • 169481

Signed-off-by: xiping.yan <xiping.yan@intel.com>
@xipingyan xipingyan marked this pull request as ready for review June 30, 2025 00:58
@xipingyan xipingyan requested review from a team as code owners June 30, 2025 00:58
@github-actions github-actions bot added the category: GPU OpenVINO GPU plugin label Jun 30, 2025
@@ -270,7 +270,7 @@ JitConstants GatherKernelRef::GetJitConstants(const gather_params& params) const

if (!params.fused_ops.empty()) {
std::vector<std::string> idx_order;
if (params.inputs[0].GetDims().size() == 4 && GetGatherIndexDim(params).v == 0 && !params.inputs[1].is_dynamic() &&
if (params.inputs[0].GetDims().size() == 4 && !params.inputs[1].is_dynamic() &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely, the GetGatherChannelIndex() function was meant here

@@ -270,7 +270,7 @@ JitConstants GatherKernelRef::GetJitConstants(const gather_params& params) const

if (!params.fused_ops.empty()) {
std::vector<std::string> idx_order;
if (params.inputs[0].GetDims().size() == 4 && GetGatherIndexDim(params).v == 0 && !params.inputs[1].is_dynamic() &&
if (params.inputs[0].GetDims().size() == 4 && !params.inputs[1].is_dynamic() &&
params.inputs[1].LogicalSize() == 1) {
idx_order = idx_order = {"(f)", "(y)", "(x)", "(1)"};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double assign?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in line 275

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed.

@xipingyan xipingyan force-pushed the xp/fix_gather_eltwise_bug branch from 773bcea to 5937d1e Compare July 2, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: GPU OpenVINO GPU plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants