(self,
                                   builder, # type: NeuralNetworkBuilder
                                   node, # type: Node
                                   graph, # type: Graph
                                   err_message, # type: Text
                                   )
Either raise an error for an unsupported attribute or add a custom layer.
Either raise an error for an unsupported attribute or add a custom layer.
Either raise an error for an unsupported attribute or add a custom layer .
def unsupported_op_configuration(self,
                                   builder, # type: NeuralNetworkBuilder
                                   node, # type: Node
                                   graph, # type: Graph
                                   err_message, # type: Text
                                   ):
      # type: (...) -> None
      '''
      Either raise an error for an unsupported attribute or add a custom layer.
      '''
      if self.add_custom_layers:
        from ._operators import _convert_custom
        _convert_custom(builder, node, graph, self)
      else:
        raise TypeError(
          "Error while converting op of type: {}. Error message: {} {}\n".format(node.op_type, err_message,
                                                                                  self.rerun_suggestion)
        )
def unsupported_op_configuration ( self , builder , # type: NeuralNetworkBuilder node , # type: Node graph , # type: Graph err_message , # type: Text ) : # type: (...) -> None if self . add_custom_layers : from . _operators import _convert_custom _convert_custom ( builder , node , graph , self ) else : raise TypeError ( "Error while converting op of type: {}. Error message: {} {}\n" . format ( node . op_type , err_message , self . rerun_suggestion ) )