Refactor: add type hints to style_bert_vits2.models.utils

This commit is contained in:
tsukumi
2024-03-09 17:26:42 +00:00
parent 98ab8e7978
commit 61e2a1deae
2 changed files with 127 additions and 33 deletions

View File

@@ -8,7 +8,7 @@ from style_bert_vits2.nlp.symbols import (
)
# __init__.py は配下のモジュールをインポートした時点で実行される
# Pytorch のインポートは重いので、型チェック時以外はインポートしない
# PyTorch のインポートは重いので、型チェック時以外はインポートしない
if TYPE_CHECKING:
import torch