KEMBAR78
[inductor] Refactor ir.Layout into ir.OutputSpec by jansel · Pull Request #140910 · pytorch/pytorch · GitHub
Skip to content

Conversation

@jansel
Copy link
Contributor

@jansel jansel commented Nov 17, 2024

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 17, 2024

🔗 Helpful Links

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

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 20d94d8 with merge base 260d1dc (image):
💚 Looks good so far! There are no failures yet. 💚

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

jansel added a commit that referenced this pull request Nov 17, 2024
@jansel jansel added the topic: not user facing topic category label Nov 17, 2024
[ghstack-poisoned]
@jansel jansel changed the title [inductor] Refactor ir.Layout to subclass ir.OutputSpec [inductor] Refactor ir.Layout into ir.OutputSpec Nov 17, 2024
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@jansel jansel marked this pull request as ready for review November 20, 2024 19:43
query.get_dtype(),
[B, Hq, seq_len_q, v_head_dim],
stride=out_strides,
stride=[sympy.sympify(s) for s in out_strides],
Copy link
Contributor

Choose a reason for hiding this comment

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

MEH

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

Maybe wanna circulate this with inductor devs too though :P

pytorchmergebot pushed a commit that referenced this pull request Nov 21, 2024
Pull Request resolved: #140912
Approved by: https://github.com/aorenste
ghstack dependencies: #140895, #140910
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
This separate the concepts of a Layout (size/stride/etc) and an OutputSpec (which includes multiple outputs).  Which should make typing easier.

Pull Request resolved: pytorch#140910
Approved by: https://github.com/ezyang
ghstack dependencies: pytorch#140895
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
@github-actions github-actions bot deleted the gh/jansel/437/head branch December 22, 2024 02:09
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.

3 participants