Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 98c9b30

Browse filesBrowse files
committed
Set _torch_version to N/A if torch is disabled.
1 parent 3a31b29 commit 98c9b30
Copy full SHA for 98c9b30

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎src/diffusers/utils/import_utils.py

Copy file name to clipboardExpand all lines: src/diffusers/utils/import_utils.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def _is_package_available(pkg_name: str, get_dist_name: bool = False) -> Tuple[b
9999
else:
100100
logger.info("Disabling PyTorch because USE_TORCH is set")
101101
_torch_available = False
102+
_torch_version = "N/A"
102103

103104
_jax_version = "N/A"
104105
_flax_version = "N/A"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.