Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
447ccd06
Unverified
Commit
447ccd06
authored
Jun 11, 2025
by
rasmi
Committed by
GitHub
Jun 11, 2025
Browse files
Set _torch_version to N/A if torch is disabled. (#11645)
parent
f3e09114
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/diffusers/utils/import_utils.py
src/diffusers/utils/import_utils.py
+1
-0
No files found.
src/diffusers/utils/import_utils.py
View file @
447ccd06
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment