simply long version display for torch in UI

This commit is contained in:
AUTOMATIC 2023-02-19 08:38:38 +03:00
parent aa7ddb8b0c
commit b5f69ad6af
1 changed files with 1 additions and 6 deletions

View File

@ -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}