Skip to content

Conversation

@jiayisunx
Copy link
Collaborator

@jiayisunx jiayisunx commented Oct 24, 2024

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 24, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/138807

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit 57b01ba with merge base b379a28 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

jiayisunx added a commit that referenced this pull request Oct 24, 2024
[ghstack-poisoned]
@jiayisunx jiayisunx marked this pull request as draft October 24, 2024 10:06
jiayisunx added a commit that referenced this pull request Oct 25, 2024
[ghstack-poisoned]
jiayisunx added a commit that referenced this pull request Oct 30, 2024
[ghstack-poisoned]
@jiayisunx jiayisunx added the topic: not user facing topic category label Oct 30, 2024
jiayisunx added a commit that referenced this pull request Nov 1, 2024
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@jiayisunx jiayisunx added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 7, 2024
[ghstack-poisoned]
[ghstack-poisoned]
jiayisunx added a commit that referenced this pull request Nov 7, 2024
@jiayisunx jiayisunx marked this pull request as ready for review November 8, 2024 00:41
@jiayisunx jiayisunx requested review from jgong5 and leslie-fang-intel and removed request for jgong5 November 8, 2024 00:41
Comment on lines 280 to 303
for use_bias, pytorch_op in itertools.product(linear_bias, ops):
# add
test_linear_fusion(
use_bias,
pytorch_op,
False,
add_tensor=torch.rand(
4,
32,
).to(self.device),
expect_success=False,
)

# broadcasting add
test_linear_fusion(
use_bias,
pytorch_op,
False,
add_tensor=torch.rand(
4,
1,
).to(self.device),
expect_success=False,
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add note in the code on why you are expecting fusion failures.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added, thanks for your comments!

torch.nn.ReLU6(): 3,
torch.nn.SiLU(): 3,
torch.nn.Hardsigmoid(): 5,
# torch.nn.Hardsigmoid(): 5,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why comment it out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardsigmoid will be decomposed into add, clamp_min, clamp_max, div. With this pr, scalar add will be folded with conv/linear, which will change the behavior of the following fusion. I haven't figured out how to fix this issue yet, do you have any ideas?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I currently only support the float type scalar case to avoid this problem.

[ghstack-poisoned]
jiayisunx added a commit that referenced this pull request Nov 11, 2024
[ghstack-poisoned]
jiayisunx added a commit that referenced this pull request Nov 13, 2024
[ghstack-poisoned]
jiayisunx added a commit that referenced this pull request Nov 14, 2024
jiayisunx added a commit to jiayisunx/pytorch that referenced this pull request Nov 14, 2024
@jiayisunx jiayisunx requested a review from jgong5 November 18, 2024 02:15
Copy link
Collaborator

@jgong5 jgong5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a small nit, others LGTM.

@jiayisunx jiayisunx requested a review from jansel November 18, 2024 11:52
[ghstack-poisoned]
jiayisunx added a commit that referenced this pull request Nov 18, 2024
Copy link
Contributor

@jansel jansel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failing tests?

jiayisunx added a commit that referenced this pull request Nov 19, 2024
[ghstack-poisoned]
@jiayisunx
Copy link
Collaborator Author

Failing tests?

Sorry, this was introduced by the last rebase. I have fixed it. Can you review it again? Thanks!

@jiayisunx jiayisunx requested a review from jansel November 19, 2024 13:01
@jiayisunx
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants