diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ui.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/ui.py b/modules/ui.py index d9df3781..54efb6a4 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1779,15 +1779,10 @@ def versions_html(): else:
xformers_version = "N/A"
- try:
- torch_version = torch.__long_version__
- except:
- torch_version = torch.__version__
-
return f"""
python: <span title="{sys.version}">{python_version}</span>
•
-torch: {torch_version}
+torch: {getattr(torch, '__long_version__',torch.__version__)}
•
xformers: {xformers_version}
•
|