Skip to content

Commit

Permalink
fix a bug in conftest.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Fei Wang committed Apr 7, 2021
1 parent 1d9ad8b commit 65d8d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ncdm/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def data(conf):
dataset = TensorDataset(
torch.tensor(user_id, dtype=torch.int64),
torch.tensor(item_id, dtype=torch.int64),
torch.tensor(knowledge_embs, dtype=torch.int64),
torch.tensor(knowledge_emb, dtype=torch.int64),
torch.tensor(score, dtype=torch.float)
)
return DataLoader(dataset, batch_size=batch_size)

0 comments on commit 65d8d44

Please sign in to comment.