Keras reset layer numbers

后端 未结 4 1448
灰色年华
灰色年华 2020-12-31 21:21

Keras assigns incrementing ID numbers to layers of the same type, e.g. max_pooling1d_7, max_pooling1d_8, max_pooling1d_9,etc. Each ite

4条回答
  •  迷失自我
    2020-12-31 22:28

    Do you use jupyter notebooks? It seems like while you're rebuilding your model your tensorlow session won't restart. Because keras refers to tensorflow graphs per name it's necessary, that the counting continues.

    So if you don't want to restartthe session you're fine. However this also means, that the tensorflow session gets bigger and bigger, so restarting the session might be the desired approach. For this restart the complete program/kernel.

提交回复
热议问题