Skip to content

Remove unnecessary TensorMeta rewrap#95004

Closed
ezyang wants to merge 1 commit intogh/ezyang/1825/basefrom
gh/ezyang/1825/head
Closed

Remove unnecessary TensorMeta rewrap#95004
ezyang wants to merge 1 commit intogh/ezyang/1825/basefrom
gh/ezyang/1825/head

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented Feb 16, 2023

Stack from ghstack (oldest at bottom):

Extracted from #94523

Signed-off-by: Edward Z. Yang ezyang@meta.com

Extracted from #94523

Signed-off-by: Edward Z. Yang <ezyang@meta.com>

[ghstack-poisoned]
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Feb 16, 2023

🔗 Helpful Links

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

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

⏳ No Failures, 2 Pending

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

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

ezyang added a commit that referenced this pull request Feb 16, 2023
Extracted from #94523

Signed-off-by: Edward Z. Yang <ezyangmeta.com>

ghstack-source-id: 45a7e62
Pull Request resolved: #95004
utils.validate_dimension_indices(a.ndim, dims)
out = torch.empty_like(a, memory_format=torch.preserve_format)
return TensorMeta(out)
return torch.empty_like(a, memory_format=torch.preserve_format)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

are there other places with unneeded rewraps?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

let me take a look

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It looks like this is the only one lol. At least in torch/_prims

@ezyang ezyang added the topic: not user facing topic category label Feb 16, 2023
@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented Feb 16, 2023

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Feb 16, 2023
@pytorchmergebot
Copy link
Copy Markdown
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

@albanD albanD removed their request for review February 16, 2023 22:46
pruthvistony added a commit to ROCm/pytorch that referenced this pull request May 2, 2023
@facebook-github-bot facebook-github-bot deleted the gh/ezyang/1825/head branch June 8, 2023 16:50
jhavukainen pushed a commit to kulinseth/pytorch that referenced this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants