Closed junxu-ai closed 4 years ago
Someone suggested to use Pytorch v1.1.0 instead of 1.2.0. But not sure if it is ok.
it's a version inconsistent issue. in ver 1.1.0, torch.gt outputs: torch.gt(torch.tensor([[1, 2], [3, 4]]), torch.tensor([[1, 1], [4, 4]])) tensor([[ 0, 1], [ 0, 0]], dtype=torch.uint8) while in ver 1.2.0, it outputs:
torch.ge(torch.tensor([[1, 2], [3, 4]]), torch.tensor([[1, 1], [4, 4]])) tensor([[True, True], [False, True]])
Please see the pull request #2369
🐛 Bug
Model I am using (Bert, XLNet....): bertabs-finetuned-cnndm-extractive-abstractive-summarization-pytorch_model
Language I am using the model on (, Chinese....): English
The problem arise when using:
The tasks I am working on is:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Environment
Additional context
errors come from modeling_berabs.py, line 328, in forward