(self,
                     node,  # type: Node
                    )
Either raise an error for an unsupported op type or return custom layer add function
Either raise an error for an unsupported op type or return custom layer add function
Either raise an error for an unsupported op type or return custom layer add function
def unsupported_op(self,
                     node,  # type: Node
                    ):
      # type: (...) -> Callable[[Any, Node, Graph, ErrorHandling], None]
      '''
      Either raise an error for an unsupported op type or return custom layer add function
      '''
      if self.add_custom_layers:
        from ._operators import _convert_custom
        return _convert_custom
      else:
        raise TypeError(
          "ONNX node of type {} is not supported. {}\n".format(node.op_type, self.rerun_suggestion)
        )
def unsupported_op ( self , node , # type: Node ) : # type: (...) -> Callable[[Any, Node, Graph, ErrorHandling], None] if self . add_custom_layers : from . _operators import _convert_custom return _convert_custom else : raise TypeError ( "ONNX node of type {} is not supported. {}\n" . format ( node . op_type , self . rerun_suggestion ) )