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

Fix: Pass meshgrid() indexing argument to avoid pytorch warning #5399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

darrenchang
Copy link

  • Torch raises warning when torch.meshgrid() is called without explicitly passing the argument indexing

According to https://pytorch.org/docs/stable/generated/torch.meshgrid.html, the method torch.meshgrid() defaults the indexing mode to ij when the argument indexing is not explicitly set.
Torch warns about potential future changes to the default value, thus it's advised to manually set the argument to ij instead of relying on the default value.

This pull request is related to the issue #3786

Environment:
Nvidia-driver: 550.107.02
CUDA: 12.4.1
torch==2.4.0
torchvision==0.19.0

- Torch raises warning when torch.meshgrid() is called
without explicitly passing the argument `indexing`
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants