File "train_T5.py", line 151, in
input_ids=q_id, attention_mask=q_mask.type(torch.uint8))
File "/home/jl-wzy/anaconda3/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 43, in decorate_no_grad
return func(*args, kwargs)
File "/home/jl-wzy/anaconda3/lib/python3.6/site-packages/transformers/generation_utils.py", line 1050, in generate
model_kwargs,
File "/home/jl-wzy/anaconda3/lib/python3.6/site-packages/transformers/generation_utils.py", line 2228, in group_beam_search
if beam_scorer.is_done:
File "/home/jl-wzy/anaconda3/lib/python3.6/site-packages/transformers/generation_beam_search.py", line 197, in is_done
return self._done.all()
RuntimeError: all only supports torch.uint8 dtype
File "train_T5.py", line 151, in
input_ids=q_id, attention_mask=q_mask.type(torch.uint8))
File "/home/jl-wzy/anaconda3/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 43, in decorate_no_grad
return func(*args, kwargs)
File "/home/jl-wzy/anaconda3/lib/python3.6/site-packages/transformers/generation_utils.py", line 1050, in generate
model_kwargs,
File "/home/jl-wzy/anaconda3/lib/python3.6/site-packages/transformers/generation_utils.py", line 2228, in group_beam_search
if beam_scorer.is_done:
File "/home/jl-wzy/anaconda3/lib/python3.6/site-packages/transformers/generation_beam_search.py", line 197, in is_done
return self._done.all()
RuntimeError: all only supports torch.uint8 dtype