class_docstr: Defines a tree sub-graph pattern of Keras layers to match in a model.
  
  `LayerPattern` can be used to describe various common patterns in model
  graphs that we need to find.
  
  Examples:
    Matches a Conv+BN+ReLU6 and DepthwiseConv+BN+ReLU6 pattern.
    pattern = LayerPattern('ReLU', {'max_value': 6.0}, [
        LayerPattern('BatchNormalization', {}, [
            LayerPattern('Conv2D|DepthwiseConv2D', {} [])
        ])
    ])
  
    Matches multiple Conv2Ds feeding into a Concat.
    pattern = LayerPattern('Concat', {}, [
        LayerPattern('Conv2D', {}, []),
        LayerPattern('Conv2D', {}, [])
    ])
docstr: Construct pattern to match.
  
  Args:
    class_name: Type of keras layer (such as Conv2D, Dense etc.)
    config: Map of arguments of the layer to match. For eg., for ReLU(6.0)
        it would be {'max_value': 6.0}.
    inputs: input layers to the layer.
docstr_tok: ["Construct","pattern","to","match",".","Args",":","class_name",":","Type","of","keras","layer","(","such","as","Conv2D",",","Dense","etc",".",")","config",":","Map","of","arguments","of","the","layer","to","match",".","For","eg.",",","for","ReLU","(","6.0",")","it","would","be","{","'max_value","'",":","6.0","}",".","inputs",":","input","layers","to","the","layer","."]
code: def __init__(self, class_name, config=None, inputs=None):
      """Construct pattern to match.
  
      Args:
        class_name: Type of keras layer (such as Conv2D, Dense etc.)
        config: Map of arguments of the layer to match. For eg., for ReLU(6.0)
            it would be {'max_value': 6.0}.
        inputs: input layers to the layer.
      """
      if config is None:
          config = {}
      if inputs is None:
          inputs = []
  
      self.class_name = class_name
      self.config = config
      self.inputs = inputs
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import collections
  import six
label_desc: Use image node_id 1 to create a new LayerPattern object from inherited base classes: object with example: obj = LayerPattern(class_name, config, inputs)