Skip to content

Commit

Permalink
Update check.py removing a twice defined function (intel#12760)
Browse files Browse the repository at this point in the history
Remove duplicate function
  • Loading branch information
DreadPirate09 authored Feb 5, 2025
1 parent 184adb2 commit 413d6c2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions python/llm/scripts/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -176,4 +169,4 @@ def main():
print("-----------------------------------------------------------------")

if __name__ == "__main__":
main()
main()

0 comments on commit 413d6c2

Please sign in to comment.