print all layers output

后端 未结 2 893
清酒与你
清酒与你 2021-01-26 04:47

Given the following model, how to print all layers values ?

2条回答
  •  庸人自扰
    2021-01-26 05:35

    You could so something like

        for(var i = 0; i < tf.layers.length; i++)
          model.predict(tf.layers[i].value).print();
          // OR
          model.predict(tf.layers[i].inputs).print();
    

    I don't know how is the structure of your array, but something like that could work.

提交回复
热议问题