docstr: weights: name_weights, name_bias
docstr_tok: ["weights",":","name_weights",",","name_bias"]
code: def rename_Conv(self, source_node):
      """
      weights: name_weights, name_bias
      """
      IR_node = self._convert_identity_operation(
          source_node, new_op="Conv"
      )
      kwargs = {}
  
      # strides
      stride = source_node.get_attr("stride")
      kwargs["strides"] = [1, stride, stride, 1]
  
      innode = self.dk_graph.get_node(source_node.in_edges[0])
      input_shape = innode.get_attr("_output_shape")
  
      # assert False
      kwargs["kernel_shape"] = source_node.get_attr("kernel")
  
      # padding
      if source_node.get_attr("pad"):
          kwargs["auto_pad"] = "SAME"
          padding = source_node.get_attr("padding")
          kwargs["pads"] = [
              0,
              padding,
              padding,
              0,
              0,
              padding,
              padding,
              0,
          ]
      else:
          kwargs["auto_pad"] = "VALID"
  
      # only load weight conv
  
      if source_node.get_attr("bias_term") == "true":
          kwargs["use_bias"] = True
  
          kernel = kwargs["kernel_shape"]
          kernel = np.zeros(
              [kernel[-1], kernel[-2], kernel[0], kernel[1]]
          )
          k_bias = np.zeros(kwargs["kernel_shape"][-1])
  
          conv_name = source_node.name
  
          # print("----------------",self.start)
          # print(kernel.shape)
          # print(k_bias.shape)
  
          b = np.reshape(
              self.buf[self.start : self.start + k_bias.size],
              k_bias.shape,
          )
          self.start = self.start + k_bias.size
          self.set_weight(conv_name, "bias", b)
  
          W = np.reshape(
              self.buf[self.start : self.start + kernel.size],
              kernel.shape,
          )
          self.start = self.start + kernel.size
          W = np.transpose(W, (2, 3, 1, 0))
          self.set_weight(conv_name, "weights", W)
      else:
          kwargs["use_bias"] = False
  
      assign_IRnode_values(IR_node, kwargs)
  
imports: import os
  import numpy
  from mmdnn.conversion.common.utils import *
  from mmdnn.conversion.darknet.prototxt import *
  from mmdnn.conversion.darknet.darknet_utils import *
  from mmdnn.conversion.darknet.darknet_graph import DarknetGraph
  import mmdnn.conversion.common.IR.graph_pb2
  from mmdnn.conversion.common.DataStructure.parser import Parser
  from mmdnn.conversion.common.IR.graph_pb2 import NodeDef, GraphDef, DataType
label_desc: Use image node_id 9 for calling the DarknetParser obj's underlying member method code with example usage: obj.rename_Conv(source_node) without return types