We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I tried to train wassertein autoencoder , i have this error d_z_loss.backward(-one)
RuntimeError: Mismatch in shape: grad_output[0] has a shape of torch.Size([1]) and output[0] has a shape of torch.Size([]).
The text was updated successfully, but these errors were encountered:
I have the exact same error, did you find a solution ?
Sorry, something went wrong.
It seems like replacing
one = torch.tensor([1], dtype=torch.float)
by
one = torch.tensor(1, dtype=torch.float)
works
No branches or pull requests
When I tried to train wassertein autoencoder , i have this error
d_z_loss.backward(-one)
RuntimeError: Mismatch in shape: grad_output[0] has a shape of torch.Size([1]) and output[0] has a shape of torch.Size([]).
The text was updated successfully, but these errors were encountered: