Support Python 3.10 runtime compatibility (#5366)
Signed-off-by: Xiaodong Ye <xiaodong.ye@mthreads.com>
This commit is contained in:
1 parent
18be2ba3df
commit
7be7e0d249
6 files changed
+38
-71
No files matched your search
@@ -10,7 +10,7 @@ import multiprocessing
|
||||
import time
|
||||
import traceback
|
||||
from collections.abc import Iterable, Sequence
|
||||
from enum import StrEnum, auto
|
||||
from enum import Enum
|
||||
from types import SimpleNamespace
|
||||
from typing import Any, NamedTuple
|
||||
|
||||
@@ -57,15 +57,15 @@ class SamplingCase(NamedTuple):
|
||||
lora: dict | None = None
|
||||
|
||||
|
||||
class SamplingKind(StrEnum):
|
||||
IMAGE_NONE = auto()
|
||||
IMAGE_DIFFUSION_SINGLE = auto()
|
||||
UNDERSTANDING_NONE = auto()
|
||||
UNDERSTANDING_AR_LIST = auto()
|
||||
TTS_NONE = auto()
|
||||
TTS_DIFFUSION_SINGLE = auto()
|
||||
VIDEO_NONE = auto()
|
||||
VIDEO_DIFFUSION_SINGLE = auto()
|
||||
class SamplingKind(str, Enum):
|
||||
IMAGE_NONE = "image_none"
|
||||
IMAGE_DIFFUSION_SINGLE = "image_diffusion_single"
|
||||
UNDERSTANDING_NONE = "understanding_none"
|
||||
UNDERSTANDING_AR_LIST = "understanding_ar_list"
|
||||
TTS_NONE = "tts_none"
|
||||
TTS_DIFFUSION_SINGLE = "tts_diffusion_single"
|
||||
VIDEO_NONE = "video_none"
|
||||
VIDEO_DIFFUSION_SINGLE = "video_diffusion_single"
|
||||
|
||||
|
||||
# Pre-defined arguments to be used in function calls during the tests
|
||||
|
||||
Reference in new issue
Block a user