class_docstr: A helper class for handling relay functions from darknet model.
docstr: To convert the darknet symbol to relay functions.
docstr_tok: ["To","convert","the","darknet","symbol","to","relay","functions","."]
code: def from_darknet(self):
      """To convert the darknet symbol to relay functions."""
      for i in range(self._net.n):
          layer = self._net.layers[i]
          need_skip, sym = self._preproc_layer(layer, i)
          if need_skip:
              continue
  
          processed, sym = self._handle_darknet_rnn_layers(i, sym)
          if processed:
              continue
  
          attr = self._get_darknet_attrs(layer, i)
          op_name = self._get_opname(layer)
          prefix = _get_params_prefix(op_name, i)
          params = self._get_darknet_params(self._net.layers[i], prefix)
          sym = _darknet_convert_symbol(
              op_name, _as_list(sym), params, attr, prefix
          )
  
          if params:
              self._tvmparams.update(params)
          self._sym_array[i] = sym
          self._make_outlist(sym, prefix, layer, i)
  
      outputs = _as_list(sym) + self._outs
      outputs = (
          outputs[0] if len(outputs) == 1 else _expr.Tuple(outputs)
      )
      sym = _function.Function(analysis.free_vars(outputs), outputs)
      return IRModule.from_expr(sym), self._tvmparams
  
imports: from enum import Enum
  import numpy
  import tvm
  from tvm.ir import IRModule
  from ..None import analysis
  from ..None import expr
  from ..None import function
  from .common import get_relay_op, new_var
label_desc: Use image node_id 17 for calling the GraphProto obj's underlying member method code with example usage: obj.from_darknet() and returns: IRModule,  self