class_docstr: Fuses Mul into BatchNorm
class_docstr_tok: ["Fuses","Mul","into","BatchNorm"]
code: def is_eligible(
      self, graph, nodes
  ):  # type: (Graph, Sequence[Node]) -> bool
      parent, child = nodes[0], nodes[1]
      if parent.op_type != "BatchNormalization":
          return False
      if child.op_type != "Mul":
          return False
      if "broadcast" not in child.attrs:
          return False
      if child.attrs["broadcast"] != 1:
          return False
      if "axis" not in child.attrs:
          return False
      if child.attrs["axis"] != 1:
          return False
      if child.inputs[1] not in child.input_tensors:
          return False
      if parent.inputs[1] not in parent.input_tensors:
          return False
      if parent.inputs[2] not in parent.input_tensors:
          return False
      return True
  
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 2 for calling the BNBroadcastedMulFuser obj's underlying member method code with example usage: obj.is_eligible(graph, nodes) and returns: True, False, False, False, False, False, False, False, False, False