Skip to content

Commit

Permalink
make pre-commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Nov 5, 2024
1 parent 20f3d17 commit 8975ed6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pytorch_ie/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def __init__(
**kwargs,
):
self.taskmodule = taskmodule
device_str = ("cpu" if device < 0 else f"cuda:{device}") if isinstance(device, int) else device
device_str = (
("cpu" if device < 0 else f"cuda:{device}") if isinstance(device, int) else device
)
self.device = torch.device(device_str)
self.binary_output = binary_output

Expand Down

0 comments on commit 8975ed6

Please sign in to comment.