(self)
return top[1] == 0 and top[0].op in ["FakeQuantWithMinMaxVars"]
Should the current node merge with self.state.output_node_stack[-1]?
Should the current node merge with self.state.output_node_stack[-1]?
Should the current node merge with self . state . output_node_stack [ - 1 ] ?
def should_merge_with_fake_quant_node(self):
    """Should the current node merge with self.state.output_node_stack[-1]?"""
    if not self.state.output_node_stack:
      return False
    top = self.state.output_node_stack[-1]
    return top[1] == 0 and top[0].op in ["FakeQuantWithMinMaxVars"]
def should_merge_with_fake_quant_node ( self ) : if not self . state . output_node_stack : return False top = self . state . output_node_stack [ - 1 ] return top [ 1 ] == 0 and top [ 0 ] . op in [ "FakeQuantWithMinMaxVars" ]