parameters: (
          cls,
          model,  # type: ModelProto
          device="CPU",  # type: Text
          **kwargs  # type: Any
      )
return_statement: return True
docstring: 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
docstring_summary: 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.
docstring_tokens: 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 .
function: 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
function_tokens: 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