Skip to content

Conversation

@EikanWang
Copy link
Collaborator

@EikanWang EikanWang commented Nov 29, 2022

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 29, 2022

🔗 Helpful Links

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

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

✅ No Failures

As of commit 1fcea57:
💚 Looks good so far! There are no failures yet. 💚

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

EikanWang added a commit that referenced this pull request Nov 29, 2022
ghstack-source-id: 18d463c
Pull Request resolved: #89837
@EikanWang EikanWang requested review from jansel and jgong5 November 29, 2022 12:39
@EikanWang EikanWang added topic: not user facing topic category intel This tag is for PR from Intel labels Nov 29, 2022
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.

LGTM.

return f"{x}.exp()"

@staticmethod
def erf(x):
Copy link
Contributor

Choose a reason for hiding this comment

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

I see #89388 didn't add erf here. This raises a general question: people changing the cpp backend may easily miss here, or not sure about if vectorization applies for the new op. Can we have a better way to avoid this kind of problem in future (I think Jason asked about using inheritance in one of the initial vectorization PRs)?

Copy link
Collaborator

Choose a reason for hiding this comment

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

That's why @EikanWang added a UT to make sure the op list is the same for explicit vec and omp vec here:
https://github.com/pytorch/pytorch/pull/89837/files#diff-809c39aeafb3acc92289f42a63e670a8719d4ce5627d5f88820142d80edf8d2aR4950

@EikanWang
Copy link
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 30, 2022
@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

Labels

ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request intel This tag is for PR from Intel Merged module: inductor open source topic: not user facing topic category

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants