Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in dataset creation of decoyMNIST #12

Open
avani17101 opened this issue Oct 29, 2022 · 0 comments
Open

error in dataset creation of decoyMNIST #12

avani17101 opened this issue Oct 29, 2022 · 0 comments

Comments

@avani17101
Copy link

avani17101 commented Oct 29, 2022

The dataset creation and loading for decoy has a bug (getting the error below)
Could it be looked into @laura-rieger @csinva ?

python train_mnist_decoy.py

Traceback (most recent call last):
  File "train_mnist_decoy.py", line 107, in <module>
    complete_dataset = utils.TensorDataset(train_x_tensor,train_y_tensor) # create your datset
  File "/home/avani.gupta/miniconda3/envs/py3.8/lib/python3.8/site-packages/torch/utils/data/dataset.py", line 365, in __init__
    assert all(tensors[0].size(0) == tensor.size(0) for tensor in tensors), "Size mismatch between tensors"
AssertionError: Size mismatch between tensors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant