"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "826f04576f86284d6117cffc583ca32afd9a97f0"
Commit b29fed79 authored by Param bhavsar's avatar Param bhavsar Committed by Julien Chaumond
Browse files

Updated `Tokenw ise` in print statement to `Token wise`

parent e03129ad
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
"Tokens: ['This', 'is', 'an', 'input', 'example']\n", "Tokens: ['This', 'is', 'an', 'input', 'example']\n",
"Tokens id: [1188, 1110, 1126, 7758, 1859]\n", "Tokens id: [1188, 1110, 1126, 7758, 1859]\n",
"Tokens PyTorch: tensor([[ 101, 1188, 1110, 1126, 7758, 1859, 102]])\n", "Tokens PyTorch: tensor([[ 101, 1188, 1110, 1126, 7758, 1859, 102]])\n",
"Tokenw ise output: torch.Size([1, 7, 768]), Pooled output: torch.Size([1, 768])\n" "Token wise output: torch.Size([1, 7, 768]), Pooled output: torch.Size([1, 768])\n"
] ]
} }
], ],
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
"\n", "\n",
"# Now we're ready to go through BERT with out input\n", "# Now we're ready to go through BERT with out input\n",
"outputs, pooled = model(tokens_pt)\n", "outputs, pooled = model(tokens_pt)\n",
"print(\"Tokenw ise output: {}, Pooled output: {}\".format(outputs.shape, pooled.shape))" "print(\"Token wise output: {}, Pooled output: {}\".format(outputs.shape, pooled.shape))"
] ]
}, },
{ {
......
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