Skip to content
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

[GPU] fix sdpa invalid args #27812

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ struct scaled_dot_product_attention_impl : multi_stage_primitive<scaled_dot_prod
if (!instance.has_indirect_inputs())
return false;

// if instance has no intermediate buffer, uses only default_sdpa
if (instance.get_intermediates_memories().empty())
return false;

const auto& params = *instance.get_impl_params();
const auto indirect_axis = desc->indirect_axis;
if (params.input_layouts[get_beam_table_id(desc)].get_partial_shape()[indirect_axis].get_length() == 1)
Expand Down
Loading