Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Cool everything working!
Browse files Browse the repository at this point in the history
  • Loading branch information
jameschapman19 committed Mar 3, 2022
1 parent 5fb7524 commit fc0f13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multiviewdata/torchdatasets/mnist.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __getitem__(self, index):
if self.flatten:
x_a = torch.flatten(x_a)
x_b = torch.flatten(x_b)
return {"views": (x_a.astype(np.float32), x_b.astype(np.float32)), "label": label.astype(np.float32), "index": index}
return {"views": (x_a.float(), x_b.float()), "label": label, "index": index}


class TangledMNISTDataset(Dataset):
Expand Down

0 comments on commit fc0f13e

Please sign in to comment.