mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-07-04 04:58:12 +08:00
12 lines
342 B
Python
12 lines
342 B
Python
import importlib.util
|
|
|
|
if importlib.util.find_spec("mlx") is not None:
|
|
from .sample_funcs_mlx import sample_naive as sample_naive_mlx
|
|
from .t2s_engine_mlx import T2SEngine as T2SEngineMLX
|
|
|
|
backends = ["mlx_static", "mlx_quantized", "mlx_varlen"]
|
|
else:
|
|
backends = []
|
|
|
|
__all__ = ["T2SEngineMLX", "sample_naive_mlx", "backends"]
|