8000 [inductor] weight prepack for _convolution_transpose_pointwise by chunyuan-w · Pull Request #90266 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[inductor] weight prepack for _convolution_transpose_pointwise #90266

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 19 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
3a3fed6
[inductor] weight prepack for _convolution_transpose_pointwise
chunyuan-w Dec 6, 2022
4b3185c
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 6, 2022
0b90c29
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 6, 2022
a215137
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 6, 2022
6082d2e
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 8, 2022
99b142d
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 8, 2022
0335b8a
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 9, 2022
f7785a1
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 9, 2022
cb2baa5
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 12, 2022
455c405
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 12, 2022
6332bf9
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 13, 2022
29f422b
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 13, 2022
2af66a4
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 15, 2022
762de3e
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 15, 2022
84fe700
8000 Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 15, 2022
2600a85
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 15, 2022
c63866c
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 15, 2022
1e6b9bb
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 19, 2022
7ccfae3
Update on "[inductor] weight prepack for _convolution_transpose_point…
chunyuan-w Dec 19, 2022
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 on "[inductor] weight prepack for _convolution_transpose_point…
…wise"

cc VitalyFedyunin jgong5 mingfeima XiaobingSuper sanchitintel ashokei jingxu10 mlazos soumith voznesenskym yanboliang penguinwu anijain2305 EikanWang Guobing-Chen zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx peterbell10 desertfire

[ghstack-poisoned]
  • Loading branch information
chunyuan-w committed Dec 6, 2022
commit 0b90c29fb379c7a23e884e48cf43341985a82090
15 changes: 15 additions & 0 deletions test/test_mkldnn_fusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,21 @@ def forward(self, x):
attr = pointwise_info.attr
scalars = pointwise_info.scalars
algorithm = pointwise_info.algorithm

# Prepack weight
packed_weight = torch._C._nn.mkldnn_reorder_conv_transpose2d_weight(
mod.conv_transpose.weight.to_mkldnn(),
mod.conv_transpose.padding,
mod.conv_transpose.stride,
mod.conv_transpose.dilation,
mod.conv_transpose.groups,
mod.conv_transpose.output_padding,
x.size())
mod.conv_transpose.weight = torch.nn.Parameter(
packed_weight,
requires_grad=mod.conv_transpose.weight.requires_grad,
)

fused = torch.ops.mkldnn._convolution_transpose_pointwise(
x,
mod.conv_transpose.weight,
Expand Down
0