Closed ryantd closed 3 years ago
Adding a hasattr func is more secure if there is no valid or test attribute in Dataset, like PartitionKGDataset.
valid
test
PartitionKGDataset
https://github.com/awslabs/dgl-ke/blob/master/python/dglke/dataloader/KGDataset.py#L147-L165
cc @classicsong
Bump
Adding a hasattr func is more secure if there is no
valid
ortest
attribute in Dataset, likePartitionKGDataset
.https://github.com/awslabs/dgl-ke/blob/master/python/dglke/dataloader/KGDataset.py#L147-L165