'What are the numbering here for my model.summary()? I cannot understand clearly what the .summary() implies here

I know about the embedding layer, bidirectional LSTM and dense layers as well. However, I don't understand clearly that what are the numbering actually doing here? Is that for my several time iterations over the same layers??
So, my questions are:

  1. What is the number 7 in embedding_7?
  2. What is the number 13 and 14 in bidirectional_13 and bidirectional_14?

Layer (type)                 Output Shape              Param # 
==========================================================================
embedding_7 (Embedding)      (None, 300, 8)            19307592 
bidirectional_13 (Bidirecti  (None, 300, 256)         141312    
onal)  
bidirectional_14 (Bidirecti  (None, 256)              395264    
onal)
dense_7 (Dense)              (None, 9)                 2313      

=================================================================
Total params: 19,846,481
Trainable params: 19,846,481
Non-trainable params: 0


Solution 1:[1]

Tensorflow / keras layers have a name property which has to be unique for graph generation. If you don't supply a (unique!) name with the 'name' keyword, tensorflow / keras will generate a name for you (the first term in the list, before the parentheses).

To make generated names unique, an incrementing number starting from 0 is appended. So 'dense_7' is the 8th Dense-layer the net has created in the graph.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tim