test
This commit is contained in:
parent
936c37d0f6
commit
03f42561c6
@ -28,6 +28,8 @@ class TrainDataset(Dataset):
|
|||||||
|
|
||||||
def __getitem__(self, idx):
|
def __getitem__(self, idx):
|
||||||
ele = self.triples[idx]
|
ele = self.triples[idx]
|
||||||
|
if (idx == 0):
|
||||||
|
print(ele)
|
||||||
triple, label, sub_samp = torch.LongTensor(ele['triple']), np.int32(
|
triple, label, sub_samp = torch.LongTensor(ele['triple']), np.int32(
|
||||||
ele['label']), np.float32(ele['sub_samp'])
|
ele['label']), np.float32(ele['sub_samp'])
|
||||||
trp_label = self.get_label(label)
|
trp_label = self.get_label(label)
|
||||||
|
Loading…
Reference in New Issue
Block a user