@ -478,7 +478,11 @@ class Main(object):
batch, 'train')
pred = self.model.forward(sub, rel, neg_ent, self.p.train_strategy)
try:
loss = self.model.loss(pred, label, sub_samp)
except Exception as e:
print(pred)
raise e
loss.backward()
self.optimizer.step()
The note is not visible to the blocked user.