[LLM] IPEX import support bigdl-core-xe-21 (#9769)
Add support for bigdl-core-xe-21.
This commit is contained in:
		
							parent
							
								
									a8baf68865
								
							
						
					
					
						commit
						f0f9d45eac
					
				
					 1 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
					@ -35,10 +35,19 @@ class IPEXImporter:
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        # Check if xpu version installed
 | 
					        # Check if xpu version installed
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
 | 
					            # Check if bigdl-core-xe is installed
 | 
				
			||||||
            distribution('bigdl-core-xe')
 | 
					            distribution('bigdl-core-xe')
 | 
				
			||||||
            return True
 | 
					            return True
 | 
				
			||||||
        except PackageNotFoundError:
 | 
					        except PackageNotFoundError:
 | 
				
			||||||
            return False
 | 
					            # bigdl-core-xe not found
 | 
				
			||||||
 | 
					            # Check if bigdl-core-xe-21 is installed
 | 
				
			||||||
 | 
					            try:
 | 
				
			||||||
 | 
					                distribution('bigdl-core-xe-21')
 | 
				
			||||||
 | 
					                return True
 | 
				
			||||||
 | 
					            except PackageNotFoundError:
 | 
				
			||||||
 | 
					                # bigdl-core-xe not found
 | 
				
			||||||
 | 
					                return False
 | 
				
			||||||
 | 
					        return False
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def import_ipex(self):
 | 
					    def import_ipex(self):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue