出现如下异常:
/pytorch/aten/src/ATen/native/cuda/LegacyDefinitions.cpp:14: UserWarning: masked_fill_ received a mask with dtype torch.uint8, this behavior is now deprecated,please use a mask with dtype torch.bool instead.
The same problem. Fixed it by changing every
"mask = blahblahblah.byte()"
to
"mask = blahblahblah.bool()"
in three files: main.py, main_parse.py and model/crf.py