You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/david/workspace/BERTSum/src/train.py", line 71, in run
train(args, device_id)
File "/home/david/workspace/BERTSum/src/train.py", line 264, in train
trainer.train(train_iter_fct, args.train_steps)
File "/home/david/workspace/BERTSum/src/models/trainer.py", line 142, in train
for i, batch in enumerate(train_iter):
File "/home/david/workspace/BERTSum/src/models/data_loader.py", line 131, in __iter__
for batch in self.cur_iter:
File "/home/david/workspace/BERTSum/src/models/data_loader.py", line 235, in __iter__
batch = Batch(minibatch, self.device, self.is_test)
File "/home/david/workspace/BERTSum/src/models/data_loader.py", line 31, in __init__
mask = 1 - (src == 0)
File "/home/david/software/anaconda3/envs/bert_sum/lib/python3.6/site-packages/torch/tensor.py", line 325, in __rsub__
return _C._VariableFunctions.rsub(self, other)
RuntimeError: Subtraction, the `-` operator, with a bool tensor is not supported. If you are trying to invert a mask, use the `~` or `bitwise_not()` operator instead.
The text was updated successfully, but these errors were encountered:
pytorch-pretrained-bert 0.6.2
pytorch-transformers 1.1.0
torch 1.2.0
The text was updated successfully, but these errors were encountered: