class_docstr: Fuses Mul into BatchNorm
class_docstr_tok: ["Fuses","Mul","into","BatchNorm"]
code: def merge(
      self, graph, nodes
  ):  # type: (Graph, Sequence[Node]) -> Sequence[Node]
      parent, child = nodes[0], nodes[1]
      weight = parent.input_tensors[parent.inputs[1]]
      bias = parent.input_tensors[parent.inputs[2]]
      W = child.input_tensors[child.inputs[1]]
      parent.input_tensors[parent.inputs[1]] = np.multiply(weight, W)
      parent.input_tensors[parent.inputs[2]] = np.multiply(bias, W)
      parent.outputs = child.outputs
      parent.children.remove(child)
      child.parents.remove(parent)
      return [parent]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from typing import Sequence, Text, Dict, List
  import numpy
  from onnx import TensorProto
  from ._graph import Graph, Node
label_desc: Use image node_id 3 for calling the BNBroadcastedMulFuser obj's underlying member method code with example usage: obj.merge(graph, nodes) and returns: list