-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[v3.7 backport] graph, benchdnn: several minor fixes for SDPA with mask #2673
Conversation
make test |
b1b65bd
to
35e730a
Compare
make test |
35e730a
to
215766d
Compare
make test |
215766d
to
5f40724
Compare
make test |
op_kind::dnnl_to_group, op_kind::dnnl_from_group, | ||
op_kind::dnnl_permute, op_kind::dnnl_squeeze, | ||
op_kind::dnnl_unsqueeze, op_kind::dnnl_transpose, | ||
op_kind::dnnl_reshape, op_kind::dnnl_gen_index, op_kind::dnnl_mask}; |
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.
Nit: I'd add a comma at the end to keep previous formatting.
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.
reformatted, thanks
with negative axis value
5f40724
to
01a3978
Compare
Description
backport #2660 to rls-v3.7
This PR includes 3 minor fixes for SDPA with explicit or implicit mask:
[x] enhance check of axis in implicit causal mask to include negative axis (-1 & -2).
[x] support 1D / 2D mask for explicit causal mask (MFDNN-13164).
[x] add a internal attribute for internal op dnnl_gen_index for constant propagation (SET_ATTR_IS_CONSTANT)