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:
 | 
					    except:
 | 
				
			||||||
        print("PyTorch is not installed.")
 | 
					        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():
 | 
					def check_ipex_llm_version():
 | 
				
			||||||
    import os
 | 
					    import os
 | 
				
			||||||
    if os.system("pip show ipex-llm")!=0:
 | 
					    if os.system("pip show ipex-llm")!=0:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue