From 413d6c2b66b33f0968e1a11f4703b56ebb03c1d6 Mon Sep 17 00:00:00 2001 From: Danciu Georgian <62398759+DreadPirate09@users.noreply.github.com> Date: Wed, 5 Feb 2025 05:37:59 +0200 Subject: [PATCH] Update check.py removing a twice defined function (#12760) Remove duplicate function --- python/llm/scripts/check.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/python/llm/scripts/check.py b/python/llm/scripts/check.py index 5c2f9b3d..31aa0130 100644 --- a/python/llm/scripts/check.py +++ b/python/llm/scripts/check.py @@ -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() \ No newline at end of file + main()