ultralytics 8.0.182 remove deprecated pkg_resources (#4979)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
0cf82f5040
commit
28569ced8a
10 changed files with 134 additions and 45 deletions
|
|
@ -76,11 +76,11 @@ def select_device(device='', batch=0, newline=False, verbose=True):
|
|||
verbose (bool, optional): If True, logs the device information. Defaults to True.
|
||||
|
||||
Returns:
|
||||
torch.device: Selected device.
|
||||
(torch.device): Selected device.
|
||||
|
||||
Raises:
|
||||
ValueError: If the specified device is not available or if the batch size is not a multiple of the number of
|
||||
devices when using multiple GPUs.
|
||||
devices when using multiple GPUs.
|
||||
|
||||
Examples:
|
||||
>>> select_device('cuda:0')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue