Repository navigation
Conversation
[ghstack-poisoned]
PR Status: Approved 🚀Please fix all CI failures and trigger merge by commenting "@pytorchbot merge". ✅ AUTOMATED REVIEW - Ready for human review:
Reviewed commit: 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/200671
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0f636ee with merge base 44a629b ( 🟡 GREEN LIGHT - PR requires human review:
reason: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…t.h from generated per-op headers [ghstack-poisoned]
|
From a skim, maybe this is overly wordy but it seems OK. The prompt grounded this on "focus on things that made things take a long time / many tokens in the transcript" |
Add a checklist skill for adding a new overload to an existing ATen op in native_functions.yaml. It collects the steps that are easy to miss and expensive to discover late: - C++ overload resolution: kwarg-only arguments are flattened into positional parameters, so a new str argument makes existing calls like at::addmm_out(out, self, m1, m2, 0, 1) ambiguous, and a bool/int argument silently rebinds them; fix with cpp_no_default_args. - Per-overload tables that the base op's entries don't cover: autocast lists, derivatives.yaml, vmap batch rules, Conjugate fallthroughs, DTensor sharding strategies. - Python registrations on an OpOverloadPacket (meta, decompositions, Inductor lowerings) that silently capture the new overload, and the make_fallback ordering in Inductor's lowering.py. ghstack-source-id: 5155757 Pull-Request: #200671
There was a problem hiding this comment.
Automated review of 0f636ee: nothing blocking; ready for human review.
Docs-only PR adding an agent skill (.agents/skills/add-op-overload/SKILL.md) with a checklist for adding overloads to existing ATen ops. Its concrete claims (out_dtype precedents, cpp_no_default_args, autocast macro lists, VMAP/conj tables, packet-registration expansion, Inductor make_fallback ordering, DTensor fallback, HasDecomp expect test, unittest -k behavior) were checked against the tree and hold; frontmatter matches sibling skills and no registry needs updating. No maintainer comments are outstanding.
This review is AI-generated and advisory. Each new automated review replaces the previous one.
|
@pytorchbot merge |
Merge startedYour 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 |
Add a checklist skill for adding a new overload to an existing ATen op in native_functions.yaml. It collects the steps that are easy to miss and expensive to discover late: - C++ overload resolution: kwarg-only arguments are flattened into positional parameters, so a new str argument makes existing calls like at::addmm_out(out, self, m1, m2, 0, 1) ambiguous, and a bool/int argument silently rebinds them; fix with cpp_no_default_args. - Per-overload tables that the base op's entries don't cover: autocast lists, derivatives.yaml, vmap batch rules, Conjugate fallthroughs, DTensor sharding strategies. - Python registrations on an OpOverloadPacket (meta, decompositions, Inductor lowerings) that silently capture the new overload, and the make_fallback ordering in Inductor's lowering.py. Pull Request resolved: pytorch#200671 Approved by: https://github.com/drisspg
Stack from ghstack (oldest at bottom):
Add a checklist skill for adding a new overload to an existing ATen op
in native_functions.yaml. It collects the steps that are easy to miss
and expensive to discover late:
positional parameters, so a new str argument makes existing calls like
at::addmm_out(out, self, m1, m2, 0, 1) ambiguous, and a bool/int
argument silently rebinds them; fix with cpp_no_default_args.
lists, derivatives.yaml, vmap batch rules, Conjugate fallthroughs,
DTensor sharding strategies.
Inductor lowerings) that silently capture the new overload, and the
make_fallback ordering in Inductor's lowering.py.