Skip to content

Instantly share code, notes, and snippets.

@mbednarski
Created March 6, 2018 22:46
Show Gist options
  • Save mbednarski/dab1a9b621cc3c1e10a060203ff9b83d to your computer and use it in GitHub Desktop.
Save mbednarski/dab1a9b621cc3c1e10a060203ff9b83d to your computer and use it in GitHub Desktop.
W2 = Variable(torch.randn(vocabulary_size, embedding_dims).float(), requires_grad=True)
z2 = torch.matmul(W2, z1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment