Skip to content

Use the symint version of computeStorageNbytes within get_nbytes.#101634

Closed
vanbasten23 wants to merge 4 commits intopytorch:mainfrom
vanbasten23:modifyGetNBytes
Closed

Use the symint version of computeStorageNbytes within get_nbytes.#101634
vanbasten23 wants to merge 4 commits intopytorch:mainfrom
vanbasten23:modifyGetNBytes

Conversation

@vanbasten23
Copy link
Copy Markdown
Contributor

@vanbasten23 vanbasten23 commented May 17, 2023

Fixes #ISSUE_NUMBER according to comment.

This change is needed to make sure calling tensor.sizes() will error if the tensor has dynamic dimension in pytorch/xla.

@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented May 17, 2023

🔗 Helpful Links

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

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

✅ No Failures

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

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

@vanbasten23 vanbasten23 marked this pull request as draft May 17, 2023 00:17
@vanbasten23
Copy link
Copy Markdown
Contributor Author

hi @ezyang , I followed your suggestion and made the change in this PR. Do you know in which file I should add a test for this PR?

@vanbasten23
Copy link
Copy Markdown
Contributor Author

cc @JackCaoG @miladm

@JackCaoG JackCaoG requested a review from ezyang May 22, 2023 17:43
@ezyang ezyang marked this pull request as ready for review May 22, 2023 23:57
@ezyang ezyang added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels May 22, 2023
@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented May 22, 2023

@pytorchbot merge

@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

laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 25, 2026
…torch#101634)

Fixes [#ISSUE_NUMBER](pytorch/xla#4998) according to [comment](pytorch/xla#4998 (comment)).

This change is needed to make sure calling tensor.sizes() will error if the tensor has dynamic dimension in pytorch/xla.
Pull Request resolved: pytorch#101634
Approved by: https://github.com/ezyang
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 open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants