lipiji / TranSummar

Transformer for abstractive summarization on cnn/daily-mail and gigawords
MIT License
140 stars 20 forks source link

Warning: masked_fill_ received a mask with dtype torch.uint8, this behavior is now deprecated,please use a mask with dtype torch.bool instead #13

Closed demdecuong closed 4 years ago

demdecuong commented 4 years ago

Warning: maskedfill received a mask with dtype torch.uint8, this behavior is now deprecated,please use a mask with dtype torch.bool instead. (masked_fill__cuda at /pytorch/aten/src/ATen/native/cuda/LegacyDefinitions.cpp:19) /pytorch/aten/src/ATen/native/cuda/LegacyDefinitions.cpp:19: UserWarning: maskedfill received a mask with dtype torch.uint8, this behavior is now deprecated,please use a mask with dtype torch.bool instead.

I recieve this warning, so how can i avoid this warning during training.

My environment:

lipiji commented 4 years ago

@demdecuong Thanks. This ia because some old pytorch version degraded funcs are used in my code. This issue has been Fixed.