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

Add indexing='ij' in torch.meshgrid() #14

Open
gurdeepmaurya opened this issue Sep 20, 2023 · 0 comments
Open

Add indexing='ij' in torch.meshgrid() #14

gurdeepmaurya opened this issue Sep 20, 2023 · 0 comments

Comments

@gurdeepmaurya
Copy link

https://github.com/visinf/dense-ulearn-vos/blob/88e5e3518cb0c4a636ad652a3c0f544a370f4c6c/labelprop/crw.py#L234C7-L234C7

Hi,

Could you add indexing='ij' in torch.meshgrid() to suppress the warning?

/home/user/anaconda3/envs/dense-ulearn-vos/lib/python3.10/site-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/conda/conda-bld/pytorch_1670525552843/work/aten/src/ATen/native/TensorShape.cpp:3190.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]

See : https://pytorch.org/docs/stable/generated/torch.meshgrid.html for reason behind warning.

Regards
Akshit Maurya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant