MOSS icon indicating copy to clipboard operation
MOSS copied to clipboard

运行报错

Open seraph667794 opened this issue 1 year ago • 1 comments

UserWarning: where received a uint8 condition tensor. This behavior is deprecated and will be removed in a future version of PyTorch. Use a boolean condition instead. (Triggered internally at ../aten/src/ATen/native/TensorCompare.cpp:402.) attn_weights = torch.where(causal_mask, attn_weights, mask_value) UserWarning: where received a uint8 condition tensor. This behavior is deprecated and will be removed in a future version of PyTorch. Use a boolean condition instead. (Triggered internally at ../aten/src/ATen/native/TensorCompare.cpp:402.) attn_weights = torch.where(causal_mask, attn_weights, mask_value)

seraph667794 avatar Apr 25 '23 02:04 seraph667794

这是个warning,应该不会影响实际效果

Hzfinfdu avatar Apr 25 '23 06:04 Hzfinfdu