|
741 | 741 | "<tf.Variable 'convtest/_weights:0' shape=(3, 3, 1, 32) dtype=float32_ref>\n", |
742 | 742 | "<tf.Variable 'convtest/_biases:0' shape=(32,) dtype=float32_ref>\n", |
743 | 743 | "Tensor(\"convtest/Conv2D:0\", shape=(?, 28, 28, 32), dtype=float32)\n", |
744 | | - "Tensor(\"convtest/net_pre-activaiton:0\", shape=(?, 28, 28, 32), dtype=float32)\n", |
| 744 | + "Tensor(\"convtest/net_pre-activation:0\", shape=(?, 28, 28, 32), dtype=float32)\n", |
745 | 745 | "Tensor(\"convtest/activation:0\", shape=(?, 28, 28, 32), dtype=float32)\n" |
746 | 746 | ] |
747 | 747 | } |
|
779 | 779 | " padding=padding_mode)\n", |
780 | 780 | " print(conv)\n", |
781 | 781 | " conv = tf.nn.bias_add(conv, biases, \n", |
782 | | - " name='net_pre-activaiton')\n", |
| 782 | + " name='net_pre-activation')\n", |
783 | 783 | " print(conv)\n", |
784 | 784 | " conv = tf.nn.relu(conv, name='activation')\n", |
785 | 785 | " print(conv)\n", |
|
808 | 808 | "<tf.Variable 'fctest/_weights:0' shape=(784, 32) dtype=float32_ref>\n", |
809 | 809 | "<tf.Variable 'fctest/_biases:0' shape=(32,) dtype=float32_ref>\n", |
810 | 810 | "Tensor(\"fctest/MatMul:0\", shape=(?, 32), dtype=float32)\n", |
811 | | - "Tensor(\"fctest/net_pre-activaiton:0\", shape=(?, 32), dtype=float32)\n", |
| 811 | + "Tensor(\"fctest/net_pre-activation:0\", shape=(?, 32), dtype=float32)\n", |
812 | 812 | "Tensor(\"fctest/activation:0\", shape=(?, 32), dtype=float32)\n" |
813 | 813 | ] |
814 | 814 | } |
|
835 | 835 | " layer = tf.matmul(input_tensor, weights)\n", |
836 | 836 | " print(layer)\n", |
837 | 837 | " layer = tf.nn.bias_add(layer, biases,\n", |
838 | | - " name='net_pre-activaiton')\n", |
| 838 | + " name='net_pre-activation')\n", |
839 | 839 | " print(layer)\n", |
840 | 840 | " if activation_fn is None:\n", |
841 | 841 | " return layer\n", |
|
1027 | 1027 | "<tf.Variable 'conv_1/_weights:0' shape=(5, 5, 1, 32) dtype=float32_ref>\n", |
1028 | 1028 | "<tf.Variable 'conv_1/_biases:0' shape=(32,) dtype=float32_ref>\n", |
1029 | 1029 | "Tensor(\"conv_1/Conv2D:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1030 | | - "Tensor(\"conv_1/net_pre-activaiton:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
| 1030 | + "Tensor(\"conv_1/net_pre-activation:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1031 | 1031 | "Tensor(\"conv_1/activation:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1032 | 1032 | "\n", |
1033 | 1033 | "Building 2nd layer: \n", |
1034 | 1034 | "<tf.Variable 'conv_2/_weights:0' shape=(5, 5, 32, 64) dtype=float32_ref>\n", |
1035 | 1035 | "<tf.Variable 'conv_2/_biases:0' shape=(64,) dtype=float32_ref>\n", |
1036 | 1036 | "Tensor(\"conv_2/Conv2D:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1037 | | - "Tensor(\"conv_2/net_pre-activaiton:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
| 1037 | + "Tensor(\"conv_2/net_pre-activation:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1038 | 1038 | "Tensor(\"conv_2/activation:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1039 | 1039 | "\n", |
1040 | 1040 | "Building 3rd layer:\n", |
1041 | 1041 | "<tf.Variable 'fc_3/_weights:0' shape=(1024, 1024) dtype=float32_ref>\n", |
1042 | 1042 | "<tf.Variable 'fc_3/_biases:0' shape=(1024,) dtype=float32_ref>\n", |
1043 | 1043 | "Tensor(\"fc_3/MatMul:0\", shape=(?, 1024), dtype=float32)\n", |
1044 | | - "Tensor(\"fc_3/net_pre-activaiton:0\", shape=(?, 1024), dtype=float32)\n", |
| 1044 | + "Tensor(\"fc_3/net_pre-activation:0\", shape=(?, 1024), dtype=float32)\n", |
1045 | 1045 | "Tensor(\"fc_3/activation:0\", shape=(?, 1024), dtype=float32)\n", |
1046 | 1046 | "\n", |
1047 | 1047 | "Building 4th layer:\n", |
1048 | 1048 | "<tf.Variable 'fc_4/_weights:0' shape=(1024, 10) dtype=float32_ref>\n", |
1049 | 1049 | "<tf.Variable 'fc_4/_biases:0' shape=(10,) dtype=float32_ref>\n", |
1050 | 1050 | "Tensor(\"fc_4/MatMul:0\", shape=(?, 10), dtype=float32)\n", |
1051 | | - "Tensor(\"fc_4/net_pre-activaiton:0\", shape=(?, 10), dtype=float32)\n" |
| 1051 | + "Tensor(\"fc_4/net_pre-activation:0\", shape=(?, 10), dtype=float32)\n" |
1052 | 1052 | ] |
1053 | 1053 | } |
1054 | 1054 | ], |
|
1158 | 1158 | "<tf.Variable 'conv_1/_weights:0' shape=(5, 5, 1, 32) dtype=float32_ref>\n", |
1159 | 1159 | "<tf.Variable 'conv_1/_biases:0' shape=(32,) dtype=float32_ref>\n", |
1160 | 1160 | "Tensor(\"conv_1/Conv2D:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1161 | | - "Tensor(\"conv_1/net_pre-activaiton:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
| 1161 | + "Tensor(\"conv_1/net_pre-activation:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1162 | 1162 | "Tensor(\"conv_1/activation:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1163 | 1163 | "\n", |
1164 | 1164 | "Building 2nd layer: \n", |
1165 | 1165 | "<tf.Variable 'conv_2/_weights:0' shape=(5, 5, 32, 64) dtype=float32_ref>\n", |
1166 | 1166 | "<tf.Variable 'conv_2/_biases:0' shape=(64,) dtype=float32_ref>\n", |
1167 | 1167 | "Tensor(\"conv_2/Conv2D:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1168 | | - "Tensor(\"conv_2/net_pre-activaiton:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
| 1168 | + "Tensor(\"conv_2/net_pre-activation:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1169 | 1169 | "Tensor(\"conv_2/activation:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1170 | 1170 | "\n", |
1171 | 1171 | "Building 3rd layer:\n", |
1172 | 1172 | "<tf.Variable 'fc_3/_weights:0' shape=(1024, 1024) dtype=float32_ref>\n", |
1173 | 1173 | "<tf.Variable 'fc_3/_biases:0' shape=(1024,) dtype=float32_ref>\n", |
1174 | 1174 | "Tensor(\"fc_3/MatMul:0\", shape=(?, 1024), dtype=float32)\n", |
1175 | | - "Tensor(\"fc_3/net_pre-activaiton:0\", shape=(?, 1024), dtype=float32)\n", |
| 1175 | + "Tensor(\"fc_3/net_pre-activation:0\", shape=(?, 1024), dtype=float32)\n", |
1176 | 1176 | "Tensor(\"fc_3/activation:0\", shape=(?, 1024), dtype=float32)\n", |
1177 | 1177 | "\n", |
1178 | 1178 | "Building 4th layer:\n", |
1179 | 1179 | "<tf.Variable 'fc_4/_weights:0' shape=(1024, 10) dtype=float32_ref>\n", |
1180 | 1180 | "<tf.Variable 'fc_4/_biases:0' shape=(10,) dtype=float32_ref>\n", |
1181 | 1181 | "Tensor(\"fc_4/MatMul:0\", shape=(?, 10), dtype=float32)\n", |
1182 | | - "Tensor(\"fc_4/net_pre-activaiton:0\", shape=(?, 10), dtype=float32)\n", |
| 1182 | + "Tensor(\"fc_4/net_pre-activation:0\", shape=(?, 10), dtype=float32)\n", |
1183 | 1183 | "Loading model from ./model/\n", |
1184 | 1184 | "INFO:tensorflow:Restoring parameters from ./model/cnn-model.ckpt-20\n", |
1185 | 1185 | "Test Accuracy: 99.310%\n" |
|
1335 | 1335 | "<tf.Variable 'conv_1/_weights:0' shape=(5, 5, 1, 32) dtype=float32_ref>\n", |
1336 | 1336 | "<tf.Variable 'conv_1/_biases:0' shape=(32,) dtype=float32_ref>\n", |
1337 | 1337 | "Tensor(\"conv_1/Conv2D:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1338 | | - "Tensor(\"conv_1/net_pre-activaiton:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
| 1338 | + "Tensor(\"conv_1/net_pre-activation:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1339 | 1339 | "Tensor(\"conv_1/activation:0\", shape=(?, 24, 24, 32), dtype=float32)\n", |
1340 | 1340 | "\n", |
1341 | 1341 | "Building 2nd layer: \n", |
1342 | 1342 | "<tf.Variable 'conv_2/_weights:0' shape=(5, 5, 32, 64) dtype=float32_ref>\n", |
1343 | 1343 | "<tf.Variable 'conv_2/_biases:0' shape=(64,) dtype=float32_ref>\n", |
1344 | 1344 | "Tensor(\"conv_2/Conv2D:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1345 | | - "Tensor(\"conv_2/net_pre-activaiton:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
| 1345 | + "Tensor(\"conv_2/net_pre-activation:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1346 | 1346 | "Tensor(\"conv_2/activation:0\", shape=(?, 8, 8, 64), dtype=float32)\n", |
1347 | 1347 | "\n", |
1348 | 1348 | "Building 3rd layer:\n", |
1349 | 1349 | "<tf.Variable 'fc_3/_weights:0' shape=(1024, 1024) dtype=float32_ref>\n", |
1350 | 1350 | "<tf.Variable 'fc_3/_biases:0' shape=(1024,) dtype=float32_ref>\n", |
1351 | 1351 | "Tensor(\"fc_3/MatMul:0\", shape=(?, 1024), dtype=float32)\n", |
1352 | | - "Tensor(\"fc_3/net_pre-activaiton:0\", shape=(?, 1024), dtype=float32)\n", |
| 1352 | + "Tensor(\"fc_3/net_pre-activation:0\", shape=(?, 1024), dtype=float32)\n", |
1353 | 1353 | "Tensor(\"fc_3/activation:0\", shape=(?, 1024), dtype=float32)\n", |
1354 | 1354 | "\n", |
1355 | 1355 | "Building 4th layer:\n", |
1356 | 1356 | "<tf.Variable 'fc_4/_weights:0' shape=(1024, 10) dtype=float32_ref>\n", |
1357 | 1357 | "<tf.Variable 'fc_4/_biases:0' shape=(10,) dtype=float32_ref>\n", |
1358 | 1358 | "Tensor(\"fc_4/MatMul:0\", shape=(?, 10), dtype=float32)\n", |
1359 | | - "Tensor(\"fc_4/net_pre-activaiton:0\", shape=(?, 10), dtype=float32)\n" |
| 1359 | + "Tensor(\"fc_4/net_pre-activation:0\", shape=(?, 10), dtype=float32)\n" |
1360 | 1360 | ] |
1361 | 1361 | } |
1362 | 1362 | ], |
|
0 commit comments