class_docstr: The :class:`Layer` class represents a single layer of a neural network. It
  should be subclassed when implementing new types of layers.
  
  Because each layer can keep track of the layer(s) feeding into it, a
  network's output :class:`Layer` instance can double as a handle to the full
  network.
  
  Parameters
  ----------
  incoming : a :class:`Layer` instance or a tuple
      The layer feeding into this layer, or the expected input shape.
  name : a string or None
      An optional name to attach to this layer.
class_docstr_tok: ["The",":","class",":","`","Layer","`","class","represents","a","single","layer","of","a","neural","network",".","It","should","be","subclassed","when","implementing","new","types","of","layers",".","Because","each","layer","can","keep","track","of","the","layer","(","s",")","feeding","into","it",",","a","network","'s","output",":","class",":","`","Layer","`","instance","can","double","as","a","handle","to","the","full","network",".","Parameters","--","--","--","--","--","incoming",":","a",":","class",":","`","Layer","`","instance","or","a","tuple","The","layer","feeding","into","this","layer",",","or","the","expected","input","shape",".","name",":","a","string","or","None","An","optional","name","to","attach","to","this","layer","."]
code: def __init__(self, incoming, name=None):
      if isinstance(incoming, tuple):
          self.input_shape = incoming
          self.input_layer = None
      else:
          self.input_shape = incoming.output_shape
          self.input_layer = incoming
  
      self.name = name
      self.params = OrderedDict()
      self.get_output_kwargs = []
  
      if any(d is not None and d <= 0 for d in self.input_shape):
          raise ValueError(
              (
                  "Cannot create Layer with a non-positive input_shape "
                  "dimension. input_shape=%r, self.name=%r"
              )
              % (self.input_shape, self.name)
          )
  
file_path: Lasagne/lasagne/layers/base.py
imports: from collections import OrderedDict
  import theano.tensor
  from ..None import utils
label_desc: Use image node_id 1 to create a new Layer object from inherited base classes: object with example: obj = Layer(incoming, name)