-
Notifications
You must be signed in to change notification settings - Fork 90
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
Runtime error #9
Comments
I solved this problem by using --batch_size 300 |
Hello! So I've also run into the same issue and it seems to depend on the version of PyTorch that you're using. So the code at line 202 in models.py Basically this section of the code finds the L2 norm for each of the hidden vectors / codes in the batch, and then divides the hidden vectors by the L2 norm to normalize them into unit vectors. The problem is just that of PyTorch syntax in changing the dimension of the norm to prepare it for the division. Let me know if you have any more issues related to this. |
Thanks, this indeed solved the problem.
But in v0.2.0, the behavior was changed:
|
#9 (comment) I think this should be uncommented by default now.. it's been almost a year |
The text was updated successfully, but these errors were encountered: