Allow torchdispatch to customize dim()#78691
Conversation
This follows the template in #77396 [ghstack-poisoned]
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 0c53b4a (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
|
I still need to thread symints through this, but will do that in a followup |
ezyang
left a comment
There was a problem hiding this comment.
BTW I kind of wondered if we should have one more policy distinction between custom sizes and custom dim; e.g., maybe the sizes are symbolic but the dim is fixed. IDK, maybe not worth.
|
We only have 2 bits for it, so that would be the last policy unless we wanted to make it bigger (our bitfield is currently 14 bits so I guess we could probably stick 2 more in there). |
|
@pytorchbot merge -g |
|
Merge failed due to Refusing to merge as mandatory check(s) win-vs2019-cpu-py3 / build, win-vs2019-cuda11.3-py3 / build failed for rule superuser |
|
isn't -g the wrong flag, you should use -a? |
|
yes oops |
This follows the template in #77396 [ghstack-poisoned]
This follows the template in #77396 [ghstack-poisoned]
|
@pytorchbot merge |
|
Hey @suo. |
Summary: This follows the template in #77396 Pull Request resolved: #78691 Approved by: https://github.com/ezyang Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/22b10873f375cb0d582f4567525238f716c430ca Reviewed By: malfet, b0noI Differential Revision: D36882361 fbshipit-source-id: 67b95f50c40b09514d958526bc6126d314cce7c5
Stack from ghstack:
This follows the template in
#77396