Update check.py removing a twice defined function (#12760)
Remove duplicate function
This commit is contained in:
		
							parent
							
								
									184adb2653
								
							
						
					
					
						commit
						413d6c2b66
					
				
					 1 changed files with 1 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -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()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue