-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[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
base: master
Are you sure you want to change the base?
[GPU] Fixed the issue with incorrect Gather+Eltwise results. #31139
Conversation
Signed-off-by: xiping.yan <xiping.yan@intel.com>
@@ -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() && |
There was a problem hiding this comment.
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)"}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double assign?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in line 275
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
773bcea
to
5937d1e
Compare
Details:
Tickets: