Restore Python 3.9 compatibility. (DirectML)

This commit is contained in:
Seunghoon Lee
2023-07-29 12:08:22 +09:00
parent 025df86ac0
commit 47f2f50574
13 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import os
import torch
from typing import NamedTuple, Callable
from typing import NamedTuple, Callable, Union
from modules.sd_hijack_utils import CondFunc
@@ -44,8 +44,8 @@ def directml_do_hijack():
class OverrideItem(NamedTuple):
value: str
condition: Callable | None
message: str | None
condition: Union[Callable, None]
message: Union[str, None]
opts_override_table = {
"diffusers_generator_device": OverrideItem("cpu", None, "DirectML does not support torch Generator API."),
+1 -1
Submodule wiki updated: f71ab007c0...d420606fc4