运行HasnNeRF遇到的问题UserWarning: torch.meshgrid: in an upcoming release

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

解决方法:

根据报错的提示点击上述报错提示的蓝色字体,然后跳转到相应的functional.py文件中

根据查找ctr+F快捷键输入:

_VF.meshgrid 

找到对应的位置,然后出现找到下面图片所展示的位置

加上如下代码 indexing = "ij"

2.UserWarning: This overload of addcmul_ is deprecated:
    addcmul_(Number value, Tensor tensor1, Tensor tensor2)
Consider using one of the following signatures instead:
    addcmul_(Tensor tensor1, Tensor tensor2, *, Number value) (Triggered internally at  /opt/conda/conda-bld/pytorch_1646755903507/work/torch/csrc/utils/python_arg_parser.cpp:1055.)

运行HasnNeRF遇到的问题UserWarning: torch.meshgrid: in an upcoming release_第1张图片

 很容易解决,照着提示修改即可。

 

 

你可能感兴趣的:(python,linux)