Closed mauicv closed 1 year ago
Defines TorchDeviceTypes: TypeAlias = Optional[Union[Literal['cuda', 'gpu', 'cpu'], 'torch.device']] in _types.py and refactors the typing for the device in the detectors.
TorchDeviceTypes: TypeAlias = Optional[Union[Literal['cuda', 'gpu', 'cpu'], 'torch.device']]
_types.py
fixes #779, #679. Also fixes #763
Merging #829 (a3519f3) into master (d19cf09) will increase coverage by 0.08%. The diff coverage is 94.84%.
0.08%
94.84%
What is this:
Defines
TorchDeviceTypes: TypeAlias = Optional[Union[Literal['cuda', 'gpu', 'cpu'], 'torch.device']]
in_types.py
and refactors the typing for the device in the detectors.fixes #779, #679. Also fixes #763