코딩 및 기타

[torch][warn] UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument.

정지홍 2025. 11. 4. 11:35

 

 

torch.meshgrid: in a upcoming release, it will be required to pass the indexing argument.

 

  • 원인
    • 코드에서 torch.meshgrid( a , b )를 indexing인자 없이 호출하고 있다...
    • pytorch는 과거에 기본값이 사실성 'ij'였다. 하지만 앞으로는 indexing을 명시하지 않으면 오류로 바뀔 예정이라는 경고를 출력한다.
  • 해결법
    • 해당 함수를 찾아서 indexing='ij'를 추가...
    •  

'코딩 및 기타' 카테고리의 다른 글

ade20k dataset  (0) 2025.11.12
Dino v3써보기  (0) 2025.11.10
[torch][warn] userWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow.  (0) 2025.11.04
YNet train코드  (0) 2025.10.29
YNet 코드  (0) 2025.10.17