Skip to content

Commit

Permalink
Fix type hint in initialize_torch_settings function
Browse files Browse the repository at this point in the history
  • Loading branch information
RichieHakim committed Apr 6, 2024
1 parent 7f2a0aa commit 5fd5db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bnpm/torch_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def initialize_torch_settings(
enable_cudnn: Optional[bool] = None,
deterministic_cudnn: Optional[bool] = None,
deterministic_torch: Optional[bool] = None,
set_global_device: Optional[str, torch.device] = None,
set_global_device: Optional[Union[str, torch.device]] = None,
init_linalg: bool = True,
init_linalg_device: Union[str, torch.device] = 'cuda:0',
) -> None:
Expand Down

0 comments on commit 5fd5db6

Please sign in to comment.