class_docstr: Base layer class.
  
  Parameters
  ----------
  input_size : list
      size of the layer input
  output_size : list
      size of the layer output
  activation : str or None
      activation function name
  input_index_mapper : IndexMapper or None
      map indexes from this layer index to the input layer index size
docstr: Return an iterator generating a tuple of local and input indexes.
  
  Local indexes are indexes over the elements of the current layer.
  Input indexes are indexes over the elements of the previous layer.
docstr_tok: ["Return","an","iterator","generating","a","tuple","of","local","and","input","indexes",".","Local","indexes","are","indexes","over","the","elements","of","the","current","layer",".","Input","indexes","are","indexes","over","the","elements","of","the","previous","layer","."]
code: def input_indexes_with_input_layer_indexes(self):
      """
      Return an iterator generating a tuple of local and input indexes.
  
      Local indexes are indexes over the elements of the current layer.
      Input indexes are indexes over the elements of the previous layer.
      """
      if self.__input_index_mapper is None:
          for index in self.input_indexes:
              yield index, index
      else:
          mapper = self.__input_index_mapper
          for index in self.input_indexes:
              yield index, mapper(index)
  
imports: import itertools
  import numpy
label_desc: Use image node_id 7 for calling the Layer obj's underlying member method code with example usage: obj.input_indexes_with_input_layer_indexes() without return types