try sep vit
This commit is contained in:
parent
37b01708b4
commit
3243b1d963
6
main.py
6
main.py
@ -478,7 +478,11 @@ class Main(object):
|
||||
batch, 'train')
|
||||
|
||||
pred = self.model.forward(sub, rel, neg_ent, self.p.train_strategy)
|
||||
loss = self.model.loss(pred, label, sub_samp)
|
||||
try:
|
||||
loss = self.model.loss(pred, label, sub_samp)
|
||||
except Exception as e:
|
||||
print(pred)
|
||||
raise e
|
||||
|
||||
loss.backward()
|
||||
self.optimizer.step()
|
||||
|
Loading…
Reference in New Issue
Block a user