mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
fix code formatting under modules/dml
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from typing import Optional, Union
|
||||
import torch
|
||||
|
||||
|
||||
rDevice = Union[torch.device, int]
|
||||
def get_device(device: Optional[rDevice]=None) -> torch.device:
|
||||
if device is None:
|
||||
|
||||
Reference in New Issue
Block a user