Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not generate zero-numel NT by default in helper and improve to_padded_tensor msg #113162

Closed
wants to merge 3 commits into from

Conversation

soulitzer
Copy link
Contributor

@soulitzer soulitzer commented Nov 7, 2023

Copy link

pytorch-bot bot commented Nov 7, 2023

🔗 Helpful Links

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

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

✅ No Failures

As of commit cdbb34c with merge base 1855153 (image):
💚 Looks good so far! There are no failures yet. 💚

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

soulitzer added a commit that referenced this pull request Nov 7, 2023
…ded_tensor msg

ghstack-source-id: 53b61ff106d3fbee31853a32d06b0f3599fc5a61
Pull Request resolved: #113162
…rove to_padded_tensor msg"

[ghstack-poisoned]
soulitzer added a commit that referenced this pull request Nov 7, 2023
…ded_tensor msg

ghstack-source-id: 59eb7192f42b057db40af48e1cb79a5f5818a3f3
Pull Request resolved: #113162
Copy link
Contributor

@jbschlosser jbschlosser left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

I think we should avoid a non-deterministic length loop if possible, but it's probably not that big of a deal

test/test_nestedtensor.py Outdated Show resolved Hide resolved
test/test_nestedtensor.py Outdated Show resolved Hide resolved
…rove to_padded_tensor msg"

[ghstack-poisoned]
soulitzer added a commit that referenced this pull request Nov 7, 2023
…ded_tensor msg

ghstack-source-id: 0d0181ba58b23e85b07271fb2afdbbecb893de43
Pull Request resolved: #113162
@soulitzer soulitzer added topic: not user facing topic category topic: improvements topic category release notes: nested tensor Changes that have a direct impact on nested tensors and removed topic: not user facing topic category labels Nov 7, 2023
@soulitzer
Copy link
Contributor Author

@pytorchbot merge

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

@facebook-github-bot facebook-github-bot deleted the gh/soulitzer/253/head branch November 11, 2023 15:24
Skylion007 pushed a commit to Skylion007/pytorch that referenced this pull request Nov 14, 2023
…ded_tensor msg (pytorch#113162)

Improvements: improves to_padded_tensor error message when passed a NT with zero numel

Pull Request resolved: pytorch#113162
Approved by: https://github.com/jbschlosser
ghstack dependencies: pytorch#113031, pytorch#112519, pytorch#113091
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 release notes: nested tensor Changes that have a direct impact on nested tensors topic: improvements topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants