Skip to content

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