bert-event-extraction
bert-event-extraction copied to clipboard
TypeError: new() received an invalid combination of arguments - got (NoneType, int), but expected one of: * (*, torch.device device)
Traceback (most recent call last):
File "D:/pythonProject/bert-event-extraction-master/train.py", line 80, in
- (*, torch.device device) didn't match because some of the arguments have invalid types: (!NoneType!, !int!)
- (torch.Storage storage)
- (Tensor other)
- (tuple of ints size, *, torch.device device)
- (object data, *, torch.device device)