Skip to content

Commit

Permalink
fix string (#18568)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwyattii authored Aug 10, 2022
1 parent 9a9a525 commit 051311f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/pipelines/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def __init__(
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
Expand Down

0 comments on commit 051311f

Please sign in to comment.