Hello
I encountered this error while running the project to produce the results.
It shows "RuntimeError: The expanded size of the tensor (15) must match the existing size (150) at non-singleton dimension 0".
crf_scores = scores.view(-1, self.tagset_size, 1).expand(ins_num, self.tagset_size, self.tagset_size) + self.transitions.view(1, self.tagset_size, self.tagset_size).expand(ins_num, self.tagset_size, self.tagset_size)
I have read the issues and change pytorch version to 0.3 and 0.4, but all these versions gave me the same error when they ran to that line.
What can I do to solve this problem? Thank you in advance
Hello I encountered this error while running the project to produce the results. It shows "RuntimeError: The expanded size of the tensor (15) must match the existing size (150) at non-singleton dimension 0".
I have read the issues and change pytorch version to 0.3 and 0.4, but all these versions gave me the same error when they ran to that line.
What can I do to solve this problem? Thank you in advance
crf_scores = scores.view(-1, self.tagset_size, 1).expand(ins_num, self.tagset_size, self.tagset_size) + self.transitions.view(1, self.tagset_size, self.tagset_size).expand(ins_num, self.tagset_size, self.tagset_size)