加载模型警告UserWarning: torch.meshgrid: in an upcoming release
Fusing layers...
D:\developmentAPP\Anaconda\envs\torchProject\lib\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 C:\actions-runner\_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\TensorShape.cpp:3191.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
System check identified no issues (0 silenced).
解决办法:添加 indexing=“ij”
return _VF.meshgrid(tensors, **kwargs, indexing="ij") # type: ignore[attr-defined]