Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b29fed79
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "e52d1258e010b88d3507a4f527c6201616c119ad"
Commit
b29fed79
authored
Mar 08, 2020
by
Param bhavsar
Committed by
Julien Chaumond
Mar 08, 2020
Browse files
Updated `Tokenw ise` in print statement to `Token wise`
parent
e03129ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
notebooks/02-transformers.ipynb
notebooks/02-transformers.ipynb
+2
-2
No files found.
notebooks/02-transformers.ipynb
View file @
b29fed79
...
...
@@ -238,7 +238,7 @@
"Tokens: ['This', 'is', 'an', 'input', 'example']\n",
"Tokens id: [1188, 1110, 1126, 7758, 1859]\n",
"Tokens PyTorch: tensor([[ 101, 1188, 1110, 1126, 7758, 1859, 102]])\n",
"Token
w
ise output: torch.Size([1, 7, 768]), Pooled output: torch.Size([1, 768])\n"
"Token
w
ise output: torch.Size([1, 7, 768]), Pooled output: torch.Size([1, 768])\n"
]
}
],
...
...
@@ -261,7 +261,7 @@
"\n",
"# Now we're ready to go through BERT with out input\n",
"outputs, pooled = model(tokens_pt)\n",
"print(\"Token
w
ise output: {}, Pooled output: {}\".format(outputs.shape, pooled.shape))"
"print(\"Token
w
ise output: {}, Pooled output: {}\".format(outputs.shape, pooled.shape))"
]
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment