test
This commit is contained in:
parent
7448528eec
commit
6d43b88599
1
main.py
1
main.py
@ -479,6 +479,7 @@ class Main(object):
|
|||||||
|
|
||||||
sub, rel, obj, nt_rel, label, neg_ent, sub_samp = self.read_batch(
|
sub, rel, obj, nt_rel, label, neg_ent, sub_samp = self.read_batch(
|
||||||
batch, 'train')
|
batch, 'train')
|
||||||
|
print(nt_rel)
|
||||||
|
|
||||||
pred = self.model.forward(sub, rel, nt_rel, neg_ent, self.p.train_strategy)
|
pred = self.model.forward(sub, rel, nt_rel, neg_ent, self.p.train_strategy)
|
||||||
loss = self.model.loss(pred, label, sub_samp)
|
loss = self.model.loss(pred, label, sub_samp)
|
||||||
|
Loading…
Reference in New Issue
Block a user