Skip to content

Conversation

@jade-cho
Copy link
Contributor

@jade-cho jade-cho commented Dec 8, 2025

Details:

  • The failure occurred because a 4D tensor was converted into a 3D tensor for oneDNN primitives, and the cldnn::format::ioyx format was not properly handled during this conversion. As a result, the primitive failed to be created.
  • Added a function to correctly handle this format (ioyx) along with other formats that could potentially cause similar issues during the conversion process.

The code and line that caused this issue

  • dims.push_back(std::max(l.spatial(0), l.spatial(1)));
    if (l.get_format() == format::bfyx)
    target_fmt = dnnl::memory::format_tag::abc;
    else if (l.get_format() == format::byxf)
    target_fmt = dnnl::memory::format_tag::acb;
    else
    OPENVINO_THROW("[GPU] Unexpected layout format " + l.to_short_string());

Checklist

  • Is it a proper fix? (not a workaround)
  • Did you include test case for this fix, if necessary?
    • The unit tests will be added with another PR. Passed e2e test.
  • Did you review existing test that can be extended to cover this scenario? Which test did you review?

Tickets:

  • 177581

Copy link
Contributor

@hyunback hyunback left a comment

Choose a reason for hiding this comment

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

LGTM, but do we need to add test code for problem case?

Copy link
Contributor

@wilson-seok wilson-seok left a comment

Choose a reason for hiding this comment

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

LGTM

@p-durandin p-durandin added this to the 2026.0 milestone Dec 10, 2025
Copy link
Contributor

@isanghao isanghao left a comment

Choose a reason for hiding this comment

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

LGTM

@isanghao isanghao added this pull request to the merge queue Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants