8000 [Intel GPU] Enable mkdnn._linear_pointwise at XPU backend by ZhiweiYan-96 · Pull Request #140365 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[Intel GPU] Enable mkdnn._linear_pointwise at XPU backend #140365

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

Closed
wants to merge 28 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update
[ghstack-poisoned]
  • Loading branch information
ZhiweiYan-96 committed May 21, 2025
commit 60d2cb79ce661fae4908f92a3c9e1eb6ac4bd35e
6 changes: 6 additions & 0 deletions aten/src/ATen/native/mkldnn/xpu/FusionUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ onednn::Attr construct_binary_attr(
attr.append_post_binary<is_matmul>(attr.kind_with_binary_add, other);
} else if (binary == "sum") {
attr.append_post_sum(1.f, 1.f, 0);
}else{
TORCH_CHECK(
binary == "none",
"Binary attr ",
binary,
"is not supported for conv/linear post binary fusion");
}
return attr;
}
Expand Down
Loading
0