This commit is contained in:
thanhvc3 2024-06-19 00:05:57 +07:00
parent 936c37d0f6
commit 03f42561c6

View File

@ -28,6 +28,8 @@ class TrainDataset(Dataset):
def __getitem__(self, idx):
ele = self.triples[idx]
if (idx == 0):
print(ele)
triple, label, sub_samp = torch.LongTensor(ele['triple']), np.int32(
ele['label']), np.float32(ele['sub_samp'])
trp_label = self.get_label(label)