-
-
Save mbednarski/84897aff240a19490b806916aa7bc3fc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_input_layer(word_idx): | |
| x = torch.zeros(vocabulary_size).float() | |
| x[word_idx] = 1.0 | |
| return x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment