카테고리 없음

Subtraction, the `-` operator, with a bool tensor is not supported. If you are trying to invert a mask, use the `~` or `logical_not()` operator instead 오류 해결

Demis Tae Kyu Eom 2020. 3. 2. 16:47

해당 문제는 파이토치의 버전이 변경되면서 발생하는 오류

 

1.2버전이후 부터 발생하는 오류로 단순하게는 파이토치의 버전을 다운그레이드 하면 해결됩니다.

 

 pip install torch==1.1.0 torchvision==0.3.0

 

openNMT등의 오픈소스프로젝트에서는 해당오류를 변경했지만 아직 반영 안된 프로젝트등이 있습니다,