1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Set _torch_version to N/A if torch is disabled. (#11645)

This commit is contained in:
rasmi
2025-06-11 17:59:54 -04:00
committed by GitHub
parent f3e09114f2
commit 447ccd0679

View File

@@ -99,6 +99,7 @@ if USE_TORCH in ENV_VARS_TRUE_AND_AUTO_VALUES and USE_TF not in ENV_VARS_TRUE_VA
else:
logger.info("Disabling PyTorch because USE_TORCH is set")
_torch_available = False
_torch_version = "N/A"
_jax_version = "N/A"
_flax_version = "N/A"