class_docstr: A helper class for handling relay functions from darknet model.
docstr: Parse the biases for region layer.
docstr_tok: ["Parse","the","biases","for","region","layer","."]
code: def _get_region_weights(self, layer, opname):
      """Parse the biases for region layer."""
      biases = self._read_memory_buffer((layer.n * 2,), layer.biases)
      attributes = np.array(
          [
              layer.n,
              layer.out_c,
              layer.out_h,
              layer.out_w,
              layer.classes,
              layer.coords,
              layer.background,
          ],
          dtype=np.int32,
      )
      params = {}
      k = _get_params_name(opname, "bias")
      params[k] = tvm.nd.array(biases)
      k = _get_params_name(opname, "attr")
      params[k] = tvm.nd.array(attributes)
      return params
  
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 5 for calling the GraphProto obj's underlying member method code with example usage: obj._get_region_weights(layer, opname) and returns: params