"vscode:/vscode.git/clone" did not exist on "92eb12d64298c5811b1c0199ee5484937d07e813"
Unverified Commit 8bd400d0 authored by Rick Ho's avatar Rick Ho Committed by GitHub
Browse files

Merge pull request #68 from serendipityCoding/fix-transformer-typo

Fix typo in transformer example
parents 0ec96584 0ac24914
......@@ -513,7 +513,7 @@ class AdaptiveEmbedding(nn.Module):
l_idx, r_idx = self.cutoff_ends[i], self.cutoff_ends[i+1]
d_emb_i = d_embed // (div_val ** i)
self.emb_layers.append(nn.Embedding(r_idx-l_idx, d_emb_i))
self.emb_projs.append(Projectio(d_proj, d_emb_i))
self.emb_projs.append(Projection(d_proj, d_emb_i))
def forward(self, inp):
if self.div_val == 1:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment