(cls,
                       model,  # type: ModelProto
                       device='CPU',  # type: Text
                       **kwargs  # type: Any
                       )
return True
This function will gradually grow to cover more cases. 
        Need to be careful of false negatives. There are some cases that seemingly 
        are not supported on CoreML, which the graph transformer optimizes and converts to 
        a graph that can be converted to CoreML. 
        
        2. Unsupported ops: If graph has one of unsupported op, exit
This function will gradually grow to cover more cases. 
        Need to be careful of false negatives. There are some cases that seemingly 
        are not supported on CoreML, which the graph transformer optimizes and converts to 
        a graph that can be converted to CoreML. 
        
        2. Unsupported ops: If graph has one of unsupported op, exit
This function will gradually grow to cover more cases . Need to be careful of false negatives . There are some cases that seemingly are not supported on CoreML which the graph transformer optimizes and converts to a graph that can be converted to CoreML . 2 . Unsupported ops : If graph has one of unsupported op exit
def is_compatible(cls,
                       model,  # type: ModelProto
                       device='CPU',  # type: Text
                       **kwargs  # type: Any
                       ):  # type: (...) -> bool
        # Return whether the model is compatible with CoreML.
        '''
        This function will gradually grow to cover more cases. 
        Need to be careful of false negatives. There are some cases that seemingly 
        are not supported on CoreML, which the graph transformer optimizes and converts to 
        a graph that can be converted to CoreML. 
        
        2. Unsupported ops: If graph has one of unsupported op, exit
           
        '''
        ## TODO: Add un-supported ops
        unsupported_ops = []
        graph = model.graph
        for node in graph.node:
            if node.op_type in unsupported_ops:
                return False
        return True
def is_compatible ( cls , model , # type: ModelProto device = 'CPU' , # type: Text * * kwargs # type: Any ) : # type: (...) -> bool # Return whether the model is compatible with CoreML. ## TODO: Add un-supported ops unsupported_ops = [ ] graph = model . graph for node in graph . node : if node . op_type in unsupported_ops : return False return True