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
051311ff
Unverified
Commit
051311ff
authored
Aug 10, 2022
by
Michael Wyatt
Committed by
GitHub
Aug 10, 2022
Browse files
fix string (#18568)
parent
9a9a525b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/base.py
src/transformers/pipelines/base.py
+1
-1
No files found.
src/transformers/pipelines/base.py
View file @
051311ff
...
...
@@ -768,7 +768,7 @@ class Pipeline(_ScikitCompat):
elif
device
<
0
:
self
.
device
=
torch
.
device
(
"cpu"
)
else
:
self
.
device
=
torch
.
device
(
"cuda:{device}"
)
self
.
device
=
torch
.
device
(
f
"cuda:
{
device
}
"
)
else
:
self
.
device
=
device
self
.
binary_output
=
binary_output
...
...
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