Skip to content

Commit

Permalink
[inductor] Check if n is the input tensor of conv_pointwise
Browse files Browse the repository at this point in the history
ghstack-source-id: 9ef21de7f23b99449b82b5b4d2b2c6e2da641512
Pull Request resolved: #125119
  • Loading branch information
jiayisunx committed Apr 28, 2024
1 parent 94b328e commit 12a212b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_inductor/graph.py
Expand Up @@ -1286,7 +1286,7 @@ def debug(msg):
ir.get_stride_order(n.meta["val"].stride()),
allow_padding=True,
)
if user.target in need_fixed_channels_last_layout:
if user.target in need_fixed_channels_last_layout and n is user.args[0]:
result = ir.ExternKernel.require_stride_order(
result,
ir.get_stride_order(
Expand Down

0 comments on commit 12a212b

Please sign in to comment.