Skip to content

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

@gurdeepmaurya

Description

@gurdeepmaurya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions