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
d9d7d1a4
Commit
d9d7d1a4
authored
Nov 04, 2018
by
thomwolf
Browse files
update float()
parent
c6207d85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Comparing TF and PT models.ipynb
Comparing TF and PT models.ipynb
+1
-1
No files found.
Comparing TF and PT models.ipynb
View file @
d9d7d1a4
...
...
@@ -1015,7 +1015,7 @@
" print(input_mask)\n",
" print(example_indices)\n",
" input_ids = input_ids.to(device)\n",
" input_mask = input_mask.
float().
to(device)\n",
" input_mask = input_mask.to(device)\n",
"\n",
" all_encoder_layers, _ = model(input_ids, token_type_ids=input_type_ids, attention_mask=input_mask)\n",
"\n",
...
...
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