Update check.py removing a twice defined function (#12760)

Remove duplicate function
This commit is contained in:
Danciu Georgian 2025-02-05 05:37:59 +02:00 committed by GitHub
parent 184adb2653
commit 413d6c2b66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,13 +43,6 @@ def check_torch_version():
except:
print("PyTorch is not installed.")
def check_torch_version():
try:
import torch
print(f"torch={torch.__version__}")
except:
print("PyTorch is not installed.")
def check_ipex_llm_version():
import os
if os.system("pip show ipex-llm")!=0:
@ -176,4 +169,4 @@ def main():
print("-----------------------------------------------------------------")
if __name__ == "__main__":
main()
main()