Skip to content

Conversation

NicolasHug
Copy link
Member

@NicolasHug NicolasHug commented Oct 18, 2021

Calling torch.meshgrid starts throwing warnings like

.../torch/functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at  /opt/conda/conda-bld/pytorch_1633849720985/work/aten/src/ATen/native/TensorShape.cpp:2157.)

because of the developments of pytorch/pytorch#50276

This PR explicitly passes indexing="ij" to avoid the warning and preserve the current behaviour (https://pytorch.org/docs/master/generated/torch.meshgrid.html)

cc @datumbox

Copy link
Contributor

@prabhat00155 prabhat00155 left a comment

Choose a reason for hiding this comment

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

Thanks @NicolasHug!

@NicolasHug NicolasHug merged commit 015eb46 into pytorch:main Oct 19, 2021
mszhanyi pushed a commit to mszhanyi/vision that referenced this pull request Oct 19, 2021
facebook-github-bot pushed a commit that referenced this pull request Oct 25, 2021
Reviewed By: datumbox

Differential Revision: D31898207

fbshipit-source-id: e23c0b73c6cad555f5247674c214e567eb87ba7f
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants