[토치 (Torch)] error: more than one operator "==" matches these operands
Lua 기반의 딥 러닝 프레임워크인 토치(Torch)를 빌드하다 보면 error: more than one operator "==" matches these operands 와 같은 에러 메시지가 뜰 때가 있습니다. 이 현상은 CUDA가 9.0 버전에서부터 절반 정확도의 부동 소수점 연산을 지원하면서 생기는 문제입니다. 이럴 때에는 빌드 전에 다음과 같이 환경 변수를 추가로 지정해주면 됩니다.
export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"
이 글을 쓸 때에 https://github.com/torch/torch7/issues/1086 를 참조하였습니다.
'인공지능' 카테고리의 다른 글
IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number (8) | 2019.10.25 |
---|---|
[쿠다, Cuda] CUDA, CUDNN 설치 여부 및 버전 확인 (0) | 2018.02.02 |
딥 러닝 용어 - batch, iteration, epoch (9) | 2017.01.12 |