test
This commit is contained in:
parent
03f42561c6
commit
417a38d2e5
@ -51,6 +51,7 @@ class TrainDataset(Dataset):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def collate_fn(data):
|
def collate_fn(data):
|
||||||
triple = torch.stack([_[0] for _ in data], dim=0)
|
triple = torch.stack([_[0] for _ in data], dim=0)
|
||||||
|
print(triple)
|
||||||
trp_label = torch.stack([_[1] for _ in data], dim=0)
|
trp_label = torch.stack([_[1] for _ in data], dim=0)
|
||||||
|
|
||||||
if not data[0][2] is None: # one_to_x
|
if not data[0][2] is None: # one_to_x
|
||||||
|
Loading…
Reference in New Issue
Block a user