fix(import): lazy load torch

Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com>
This commit is contained in:
Aaron
2023-06-08 22:05:41 -04:00
parent 16df0f4393
commit b72317db67

View File

@@ -51,6 +51,7 @@ if t.TYPE_CHECKING:
else:
transformers = LazyLoader("transformers", globals(), "transformers")
torch = LazyLoader("torch", globals(), "torch")
logger = logging.getLogger(__name__)