Skip to content

Remove named tensor - #173895

Closed
jbschlosser wants to merge 21 commits into
gh/jbschlosser/252/basefrom
gh/jbschlosser/252/head
Closed

jbschlosser wants to merge 21 commits into
gh/jbschlosser/252/basefrom
gh/jbschlosser/252/head

Conversation

@jbschlosser

@jbschlosser jbschlosser commented Jan 30, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

BE project hard-removing the deprecated named tensor feature to remove overhead and code bloat. This was nearly all done by wrestling with Claude Code, so it needs some personal review and probably needs to be split into multiple PRs to help reviewers.

The process was me absent-mindedly doing this throughout the week while working on other stuff:

me: remove named tensor along with all associated APIs, tests, and docs from the codebase
claude: <does stuff>

while not built:
    me: <tries to build>
    if error:
        me: there are still remnants of named tensor (with build-error related example); remove all these
        claude: <does more stuff, usually very good at generalizing from the example>

This wasn't particularly efficient (it built after ~27 iterations) but was mostly accomplished by Claude directly. The only part Claude Code did NOT do is add a couple now-necessary #include <ATen/WrapDimUtils.h> statements.

cc @ezyang @gchanan @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @jerryzh168 @aditew01 @mcarilli @ptrblck @leslie-fang-intel @albanD @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben @jataylo @azahed98 @Lucaskabela

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jan 30, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ You can merge normally! (2 Unrelated Failures), 3 Unclassified Failures

As of commit 67f3330 with merge base 7a377e4 (image):

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: This PR has internal changes and must be landed via Phabricator! Please try reimporting/rexporting the PR!

Details for Dev Infra team Raised by workflow job

@jbschlosser

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f "merged from the diff side due to necessary internal changes; skip expected failures"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: This PR has internal changes and must be landed via Phabricator! Please try reimporting/rexporting the PR!

Details for Dev Infra team Raised by workflow job

@atalman

atalman commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -f "merged from the diff side due to necessary internal changes; skip expected failures"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

ci-no-td Do not run TD on this PR ciflow/b200 ciflow/h100 ciflow/inductor ciflow/mps Run MPS tests (subset of trunk) ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/torchtitan Run TorchTitan integration tests ciflow/trunk Trigger trunk jobs on your pull request fb-exported Merged meta-exported module: amp (automated mixed precision) autocast module: bc-breaking Related to a BC-breaking change module: cpu CPU specific problem (e.g., perf, algorithm) module: dynamo module: inductor module: named tensor Named tensor support release notes: inductor (aoti) release notes: python_frontend python frontend release notes category release notes: quantization release notes category Reverted skip-pr-sanity-checks suppress-api-compatibility-check Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) suppress-bc-linter Suppresses the failures of API backward-compatibility linter (Lint/bc_linter) topic: bc breaking topic category topic: deprecation topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants