pytorch
d6c8603b - Fix warning: use of bitwise '&' with boolean operands (#90131)

Commit
2 years ago
Fix warning: use of bitwise '&' with boolean operands (#90131) ``` [130/1102] Building CXX object caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/ATen/native/cudnn/LossCTC.cpp.o /home/gaoxiang/nvfuser5/aten/src/ATen/native/cudnn/LossCTC.cpp:97:11: warning: use of bitwise '&' with boolean operands [-Wbitwise-instead-of-logical] (target_lengths[b] < 256) & (target_lengths[b] <= input_lengths[b]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ && /home/gaoxiang/nvfuser5/aten/src/ATen/native/cudnn/LossCTC.cpp:97:11: note: cast one or both operands to int to silence this warning 1 warning generated. ``` Pull Request resolved: https://github.com/pytorch/pytorch/pull/90131 Approved by: https://github.com/kit1980
Author
Committer
Parents
Loading