improve web ui
Former-commit-id: 5c0148c018b12b52bc5748acfd6ad43836f2edb5
This commit is contained in:
@@ -79,6 +79,10 @@ def get_current_device() -> torch.device:
|
||||
return torch.device(device)
|
||||
|
||||
|
||||
def get_device_count() -> int:
|
||||
return torch.cuda.device_count()
|
||||
|
||||
|
||||
def get_logits_processor() -> "LogitsProcessorList":
|
||||
r"""
|
||||
Gets logits processor that removes NaN and Inf logits.
|
||||
|
||||
Reference in New Issue
Block a user