mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
fix directml generator.
This commit is contained in:
@@ -72,8 +72,8 @@ def directml_do_hijack():
|
||||
from modules.devices import device
|
||||
|
||||
CondFunc('torch.Generator',
|
||||
lambda orig_func, device: orig_func("cpu"),
|
||||
lambda orig_func, device: True)
|
||||
lambda orig_func, device = None: orig_func("cpu"),
|
||||
lambda orig_func, device = None: True)
|
||||
|
||||
if not torch.dml.has_float64_support(device):
|
||||
torch.Tensor.__str__ = do_nothing_with_self
|
||||
|
||||
Reference in New Issue
Block a user