- Keras Deep Learning Cookbook
- Rajdeep Dua Manpreet Singh Ghotra
- 61字
- 2021-06-10 19:38:55
Model inspection internals
On model inspection in the debugger, the following attributes can be found before calling the compile method:
input=Tensor("dense_1_input:0", shape=(?, 8), dtype=float32)
input_names=<class 'list'>: ['dense_1_input']
input_shape=<class 'tuple'>: (None, 8)
inputs=<class 'list'>: [<tf.Tensor 'dense_1_input:0' shape=(?, 8) dtype=float32>]
layers=<class 'list'>: [
<keras.layers.core.Dense object at 0x7fdbcbb444a8>,
<keras.layers.core.Dense object at 0x7fdbcbb05c50>,
<keras.layers.core.Dense object at 0x7fdbcbb05cf8>]
output=Tensor("dense_3/Sigmoid:0", shape=(?, 1), dtype=float32)
output_names=<class 'list'>: ['dense_3']
output_shape=<class 'tuple'>: (None, 1)
outputs-<class 'list'>: [<tf.Tensor 'dense_3/Sigmoid:0' shape=(?, 1) dtype=float32>]
trainable_weights=<class 'list'>:
[<tf.Variable 'dense_1/kernel:0' shape=(8, 12) dtype=float32_ref>,
<tf.Variable 'dense_1/bias:0' shape=(12,) dtype=float32_ref>,
<tf.Variable 'dense_2/kernel:0' shape=(12, 8) dtype=float32_ref>,
<tf.Variable 'dense_2/bias:0' shape=(8,) dtype=float32_ref>,
<tf.Variable 'dense_3/kernel:0' shape=(8, 1) dtype=float32_ref>,
<tf.Variable 'dense_3/bias:0' shape=(1,) dtype=float32_ref>]
weights=<class 'list'>:
[<tf.Variable 'dense_1/kernel:0' shape=(8, 12) dtype=float32_ref>,
<tf.Variable 'dense_1/bias:0' shape=(12,) dtype=float32_ref>,
<tf.Variable 'dense_2/kernel:0' shape=(12, 8) dtype=float32_ref>,
<tf.Variable 'dense_2/bias:0' shape=(8,) dtype=float32_ref>,
<tf.Variable 'dense_3/kernel:0' shape=(8, 1) dtype=float32_ref>,
<tf.Variable 'dense_3/bias:0' shape=(1,) dtype=float32_ref>]
推薦閱讀
- Circos Data Visualization How-to
- 大數(shù)據(jù)專業(yè)英語
- Ansible Quick Start Guide
- 工業(yè)機器人工程應(yīng)用虛擬仿真教程:MotoSim EG-VRC
- CorelDRAW X4中文版平面設(shè)計50例
- Apache Spark Deep Learning Cookbook
- 大學(xué)計算機應(yīng)用基礎(chǔ)
- AI 3.0
- Statistics for Data Science
- 大數(shù)據(jù)案例精析
- 智能制造系統(tǒng)及關(guān)鍵使能技術(shù)
- 計算機應(yīng)用基礎(chǔ)實訓(xùn)(職業(yè)模塊)
- Mastering MongoDB 4.x
- 工廠電氣控制設(shè)備
- 網(wǎng)頁配色萬用寶典