Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lab1/PT_Part2_Music_Generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@
" self.embedding = nn.Embedding(vocab_size, embedding_dim)\n",
"\n",
" '''TODO: Layer 2: LSTM with hidden_size `hidden_size`. note: number of layers defaults to 1.\n",
" Use the nn.LSTM() module from pytorch.'''\n",
" Use the nn.LSTM() module from pytorch. Recall that get_batch returns\n",
" tensors with shape (batch_size, sequence_length).'''\n",
" self.lstm = nn.LSTM('''TODO''') # TODO\n",
"\n",
" '''TODO: Layer 3: Linear (fully-connected) layer that transforms the LSTM output\n",
Expand Down