{"id":93,"date":"2021-12-19T13:15:03","date_gmt":"2021-12-19T05:15:03","guid":{"rendered":"https:\/\/lmceric.top\/?p=93"},"modified":"2021-12-19T13:15:04","modified_gmt":"2021-12-19T05:15:04","slug":"tensorflow%e5%ae%9e%e7%8e%b0%e6%b7%b1%e5%b1%82%e7%a5%9e%e7%bb%8f%e7%bd%91%e7%bb%9c","status":"publish","type":"post","link":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/","title":{"rendered":"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4ecb\u7ecd<\/h2>\n\n\n\n<p>\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\uff08Deep Neural Networks\uff0cDNN\uff09\u53ef\u4ee5\u7406\u89e3\u4e3a\u6709\u5f88\u591a\u9690\u85cf\u5c42\u7684\u795e\u7ecf\u7f51\u7edc\uff0c\u53c8\u88ab\u79f0\u4e3a\u6df1\u5ea6\u524d\u9988\u7f51\u7edc\uff0c\u591a\u5c42\u611f\u77e5\u673a\u3002<\/p>\n\n\n\n<p>\u672c\u5b9e\u9a8c\u4ecb\u7ecd\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc\u5728 TensorFlow \u4e0a\u7684\u5b9e\u73b0\uff0c\u5e76\u4f7f\u7528\u6a21\u578b\u5904\u7406 MNIST \u6570\u636e\u96c6\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u7406\u8bba\u77e5\u8bc6\u56de\u987e<\/h4>\n\n\n\n<p>\u4e00\u4e2a\u4e24\u5c42\u7684\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/share-10039692.file.myqcloud.com\/lab\/a17bac8dbb\/image\/jsaj98sn35\/neural_network.png\" alt=\"image\"\/><\/figure>\n\n\n\n<ol class=\"wp-block-list\"><li>\u4e0a\u56fe\u6240\u793a\u7684\u662f\u4e00\u4e2a\u5177\u6709\u4e24\u5c42\u9690\u85cf\u5c42\u7684\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc<\/li><li>\u7b2c\u4e00\u4e2a\u9690\u85cf\u5c42\u6709 <strong>4<\/strong> \u4e2a\u8282\u70b9\uff0c\u5bf9\u5e94\u7684\u6fc0\u6d3b\u51fd\u6570\u4e3a <strong>ReLu<\/strong> \u51fd\u6570<\/li><li>\u7b2c\u4e00\u4e2a\u9690\u85cf\u5c42\u6709 <strong>2<\/strong> \u4e2a\u8282\u70b9\uff0c\u5bf9\u5e94\u7684\u6fc0\u6d3b\u51fd\u6570\u4e5f\u662f <strong>Relu<\/strong> \u51fd\u6570<\/li><li>\u6700\u540e\uff0c\u8f93\u51fa\u5c42\u4f7f\u7528 <a href=\"javascript:void(0);\">softmax<\/a> \u51fd\u6570\u4f5c\u4e3a\u6fc0\u6d3b\u51fd\u6570<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">MNIST \u6570\u636e\u96c6\u4ecb\u7ecd<\/h4>\n\n\n\n<p><a href=\"javascript:void(0);\">MNIST<\/a> \u662f\u4e00\u4e2a\u624b\u5199\u963f\u62c9\u4f2f\u6570\u5b57\u7684\u6570\u636e\u96c6\u3002<\/p>\n\n\n\n<p>\u5176\u4e2d\u5305\u542b\u6709 <strong>60000<\/strong> \u4e2a\u5df2\u7ecf\u6807\u6ce8\u4e86\u7684\u8bad\u7ec3\u96c6\uff0c\u8fd8\u6709 <strong>10000<\/strong> \u4e2a\u7528\u4e8e\u6d4b\u8bd5\u7684\u6d4b\u8bd5\u96c6\u3002<\/p>\n\n\n\n<p>MNIST\u5305\u542b\u56db\u4e2a\u6587\u4ef6\u6848\uff0c\u5206\u522b\u4e3a<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>\u540d\u79f0<\/th><\/tr><\/thead><tbody><tr><td>t10k-images-idx3-ubyte.gz<\/td><\/tr><tr><td>t10k-labels-idx1-ubyte.gz<\/td><\/tr><tr><td>train-images-idx3-ubyte.gz<\/td><\/tr><tr><td>train-labels-idx1-ubyte.gz<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u6a21\u578b\u8bbe\u8ba1<\/h4>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>MNIST<\/strong> \u6570\u636e\u4e00\u5171\u6709 <strong>784<\/strong> \u4e2a\u8f93\u5165\uff0c\u6240\u4ee5\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u6709 <strong>784<\/strong> \u4e2a\u8282\u70b9\u7684\u8f93\u5165\u5c42\u3002<\/li><li><strong>MNIST<\/strong> \u6570\u636e\u4f7f\u7528 <strong>One-Hot<\/strong> \u683c\u5f0f\u8f93\u51fa\uff0c\u6709 0-9 <strong>10<\/strong> \u4e2a label\uff0c\u5206\u522b\u5bf9\u5e94\u662f\u5426\u4e3a\u6570\u5b57 0-9\uff0c\u6240\u4ee5\u6211\u4eec\u5728\u8f93\u51fa\u5c42\u6709 <strong>10<\/strong> \u4e2a\u8282\u70b9\uff0c\u7531\u4e8e 0-9 \u7684\u6982\u7387\u662f<strong>\u4e92\u65a5<\/strong>\u7684\uff0c\u6211\u4eec\u4f7f\u7528 <a href=\"javascript:void(0);\">Softmax<\/a> \u51fd\u6570\u4f5c\u4e3a\u8be5\u5c42\u7684\u6fc0\u6d3b\u51fd\u6570\u3002<\/li><\/ol>\n\n\n\n<p><strong>\u4e0d\u4e00\u6837<\/strong> \u7684\u662f\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\u7684\u5c42\u6b21\u6765\u770b\u770b\u80fd\u4e0d\u80fd\u8fbe\u5230\u4e0d\u4e00\u6837\u7684\u6548\u679c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e0b\u8f7d\u8bad\u7ec3\u96c6<\/h4>\n\n\n\n<p>\u4f7f\u7528\u4ee5\u4e0b\u7684\u547d\u4ee4\u8fdb\u884c\u4e0b\u8f7d\uff1a<\/p>\n\n\n\n<p>\u4e0b\u8f7d train-images-idx3-ubyte.gz\uff08 \u8bad\u7ec3\u96c6\u56fe\u7247\uff0c55000\u5f20\u8bad\u7ec3\u96c6\uff0c5000\u5f20\u9a8c\u8bc1\u96c6 \uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget http:\/\/yann.lecun.com\/exdb\/mnist\/train-images-idx3-ubyte.gz<\/pre>\n\n\n\n<p>\u4e0b\u8f7d train-labels-idx1-ubyte.gz\uff08 \u8bad\u7ec3\u96c6\u56fe\u7247\u5bf9\u5e94\u7684\u6807\u7b7e \uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget http:\/\/yann.lecun.com\/exdb\/mnist\/train-labels-idx1-ubyte.gz<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u4e0b\u8f7d\u6d4b\u8bd5\u96c6<\/h4>\n\n\n\n<p>\u4e0b\u8f7d t10k-images-idx3-ubyte.gz\uff08 \u6d4b\u8bd5\u96c6\u56fe\u7247\uff0c10000\u5f20\u56fe\u7247 \uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget http:\/\/yann.lecun.com\/exdb\/mnist\/t10k-images-idx3-ubyte.gz<\/pre>\n\n\n\n<p>\u4e0b\u8f7d t10k-labels-idx1-ubyte.gz\uff08 \u6d4b\u8bd5\u96c6\u56fe\u7247\u5bf9\u5e94\u7684\u6807\u7b7e \uff09<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget http:\/\/yann.lecun.com\/exdb\/mnist\/t10k-labels-idx1-ubyte.gz<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u521b\u5efa\u4ee3\u7801<\/h4>\n\n\n\n<p>\u73b0\u5728\u60a8\u53ef\u4ee5\u5728 <strong>\/home\/ubuntu<\/strong> \u76ee\u5f55\u4e0b\u521b\u5efa\u6e90\u6587\u4ef6 <strong>deep_neural_networks.py<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">touch deep_neural_networks.py<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u7f16\u8f91\u4ee3\u7801<\/h4>\n\n\n\n<p>\u7f16\u8f91 <a href=\"javascript:void(0);\">deep_neural_networks.py<\/a> \uff0c\u5185\u5bb9\u53ef\u53c2\u8003\uff1a<\/p>\n\n\n\n<p>deep_neural_networks.py<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np<br>import tensorflow as tf<br>from tensorflow.examples.tutorials.mnist import input_data<br>\u200b<br>def add_layer(inputs, in_size, out_size, activation_function=None):<br> &nbsp; &nbsp;W = tf.Variable(tf.random_normal([in_size, out_size]))<br> &nbsp; &nbsp;b = tf.Variable(tf.zeros([1, out_size]) + 0.01)<br>\u200b<br> &nbsp; &nbsp;Z = tf.matmul(inputs, W) + b<br> &nbsp; &nbsp;if activation_function is None:<br> &nbsp; &nbsp; &nbsp; &nbsp;outputs = Z<br> &nbsp; &nbsp;else:<br> &nbsp; &nbsp; &nbsp; &nbsp;outputs = activation_function(Z)<br>\u200b<br> &nbsp; &nbsp;return outputs<br>\u200b<br>\u200b<br>if __name__ == \"__main__\":<br>\u200b<br> &nbsp; &nbsp;MNIST = input_data.read_data_sets(\"mnist\", one_hot=True)<br>\u200b<br> &nbsp; &nbsp;learning_rate = 0.01<br> &nbsp; &nbsp;batch_size = 128<br> &nbsp; &nbsp;n_epochs = 70<br>\u200b<br> &nbsp; &nbsp;X = tf.placeholder(tf.float32, [batch_size, 784])<br> &nbsp; &nbsp;Y = tf.placeholder(tf.float32, [batch_size, 10])<br>\u200b<br> &nbsp; &nbsp;layer_dims = [784, 500, 500, 10]<br> &nbsp; &nbsp;layer_count = len(layer_dims)-1 <br> &nbsp; &nbsp;layer_iter = X<br>\u200b<br> &nbsp; &nbsp;for l in range(1, layer_count): # layer [1,layer_count-1] is hidden layer<br> &nbsp; &nbsp; &nbsp; &nbsp;layer_iter = add_layer(layer_iter, layer_dims[l-1], layer_dims[l], activation_function=tf.nn.relu)<br> &nbsp; &nbsp;prediction = add_layer(layer_iter, layer_dims[layer_count-1], layer_dims[layer_count], activation_function=None)<br>\u200b<br> &nbsp; &nbsp;entropy = tf.nn.softmax_cross_entropy_with_logits(labels=Y, logits=prediction)<br> &nbsp; &nbsp;loss = tf.reduce_mean(entropy)<br>\u200b<br> &nbsp; &nbsp;optimizer = tf.train.GradientDescentOptimizer(learning_rate).minimize(loss)<br>\u200b<br> &nbsp; &nbsp;init = tf.initialize_all_variables()<br>\u200b<br> &nbsp; &nbsp;with tf.Session() as sess:<br> &nbsp; &nbsp; &nbsp; &nbsp;sess.run(init)<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;n_batches = int(MNIST.test.num_examples\/batch_size)<br> &nbsp; &nbsp; &nbsp; &nbsp;for i in range(n_epochs):<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for j in range(n_batches):<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X_batch, Y_batch = MNIST.train.next_batch(batch_size)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_, loss_ = sess.run([optimizer, loss], feed_dict={X: X_batch, Y: Y_batch})<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if i % 10 == 5 and j == 0:<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;print \"Loss of epochs[{0}]: {1}\".format(i, loss_)<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;# test the model<br> &nbsp; &nbsp; &nbsp; &nbsp;n_batches = int(MNIST.test.num_examples\/batch_size)<br> &nbsp; &nbsp; &nbsp; &nbsp;total_correct_preds = 0<br> &nbsp; &nbsp; &nbsp; &nbsp;for i in range(n_batches):<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;X_batch, Y_batch = MNIST.test.next_batch(batch_size)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;preds = sess.run(prediction, feed_dict={X: X_batch, Y: Y_batch})<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;correct_preds = tf.equal(tf.argmax(preds, 1), tf.argmax(Y_batch, 1))<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;accuracy = tf.reduce_sum(tf.cast(correct_preds, tf.float32)) <br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;total_correct_preds += sess.run(accuracy)<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;print \"Accuracy {0}\".format(total_correct_preds\/MNIST.test.num_examples)<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ee3\u7801\u8bb2\u89e3<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">add_layer \u51fd\u6570<\/h4>\n\n\n\n<p>\u5141\u8bb8\u7528\u6237\u6307\u5b9a\u4e0a\u4e00\u5c42\u7684\u8f93\u51fa\u8282\u70b9\u7684\u4e2a\u6570\u4f5c\u4e3a <strong>input_size<\/strong>\uff0c\u672c\u5c42\u7684\u8282\u70b9\u4e2a\u6570\u4f5c\u4e3a <strong>output_size<\/strong>\uff0c\u5e76\u6307\u5b9a\u6fc0\u6d3b\u51fd\u6570 <strong>activation_function<\/strong> \u53ef\u4ee5\u770b\u5230\u6211\u4eec\u8c03\u7528\u7684\u65f6\u5019\u4f4d\u795e\u7ecf\u7f51\u7edc\u6dfb\u52a0\u4e86\u4e24\u4e2a <strong>\u9690\u85cf\u5c42<\/strong> \u548c <strong>\u8f93\u51fa\u5c42<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">for l in range(1, layer_count): # layer [1,layer_count-1] is hidden layer<br> &nbsp; &nbsp;layer_iter = add_layer(layer_iter, layer_dims[l-1], layer_dims[l], activation_function=tf.nn.relu)<br>prediction = add_layer(layer_iter, layer_dims[layer_count-1], layer_dims[layer_count], activation_function=None)<br>\u200b<br>entropy = tf.nn.softmax_cross_entropy_with_logits(labels=Y, logits=prediction)<br>loss = tf.reduce_mean(entropy)<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u795e\u7ecf\u7f51\u7edc\u914d\u7f6e<\/h4>\n\n\n\n<p>\u6ce8\u610f\u8fd9\u4e00\u884c\uff0c\u6211\u4eec\u914d\u7f6e\u4e86\u4e00\u4e2a\u6df1\u5ea6\u7684\u795e\u7ecf\u7f51\u7edc\uff0c\u5b83\u5305\u542b<strong>\u4e24\u4e2a<\/strong>\u9690\u85cf\u5c42\uff0c\u4e00\u4e2a\u8f93\u5165\u5c42\u548c\u4e00\u4e2a\u8f93\u51fa\u5c42 \u9690\u85cf\u5c42\u7684\u8282\u70b9\u6570\u4e3a <strong>500<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">layer_dims = [784, 500, 500, 10]<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6267\u884c\u4ee3\u7801<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">python deep_neural_networks.py<\/pre>\n\n\n\n<p>\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u51fa\u73b0\u7f51\u7edc\u9519\u8bef\uff0c\u8bf7\u91cd\u8bd5\u3002<\/p>\n\n\n\n<p>\u8fd0\u884c\u8f93\u51fa\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Loss of epochs[5]: 19.5915279388<br>Loss of epochs[15]: 7.20698690414<br>...<br>Loss of epochs[65]: 0.24952724576<br>Accuracy 0.939<\/pre>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u7ecf\u8fc7 <strong>70<\/strong> \u8f6e\u7684\u8bad\u7ec3\uff0c\u51c6\u786e\u5ea6\u5927\u7ea6\u5728 <strong>94%<\/strong>\u5de6\u53f3<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u63a2\u7d22\uff08play around\uff09<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\">\u4f60\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u4e0b\u9762\u7684\u8fd9\u4e2a\u4ee3\u7801\u7247\u6bb5\u6765\u4fee\u6539\u6574\u4e2a\u795e\u7ecf\u7f51\u7edc\u3002<\/pre>\n\n\n\n<p>deep_neural_networks.py<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp;layer_dims = [784, 500, 500, 10]<\/pre>\n\n\n\n<p>\u6bd4\u5982\u4f60\u53ef\u4ee5<code>\u53bb\u6389\u4e00\u5c42\u9690\u85cf\u5c42<\/code>\uff0c\u5e76<code>\u5c06\u9690\u85cf\u5c42\u7684\u8282\u70b9\u6570\u6539\u4e3a 600<\/code><\/p>\n\n\n\n<p>deep_neural_networks.py<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp;layer_dims = [784, 600, 10]<\/pre>\n\n\n\n<p>\u8bad\u7ec3\u5b8c\u7684\u7ed3\u679c\u5927\u6982\u662f\u8fd9\u6837\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Loss of epochs[5]: 13.1280488968<br>Loss of epochs[15]: 9.14239501953<br>Loss of epochs[25]: 3.60039186478<br>...<br>Loss of epochs[65]: 3.32054066658<br>Accuracy 0.9161<\/pre>\n\n\n\n<p>\u51c6\u786e\u5ea6\u5927\u6982 <code>92%<\/code> \u7684\u6837\u5b50\u3002have fun!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ecb\u7ecd \u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\uff08Deep Neural Net&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/\">Continue reading<span class=\"screen-reader-text\">TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":95,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[11],"tags":[25,28],"class_list":["post-93","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tec","tag-25","tag-28","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc - LMC\u7684\u4e2a\u4eba\u7ad9<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc - LMC\u7684\u4e2a\u4eba\u7ad9\" \/>\n<meta property=\"og:description\" content=\"\u4ecb\u7ecd \u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\uff08Deep Neural Net&#8230;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/\" \/>\n<meta property=\"og:site_name\" content=\"LMC\u7684\u4e2a\u4eba\u7ad9\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-19T05:15:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-19T05:15:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lmceric.top\/wp-content\/uploads\/2021\/12\/R-C-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2268\" \/>\n\t<meta property=\"og:image:height\" content=\"1322\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"SimpleAstronaut\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"SimpleAstronaut\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/\"},\"author\":{\"name\":\"SimpleAstronaut\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\"},\"headline\":\"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc\",\"datePublished\":\"2021-12-19T05:15:03+00:00\",\"dateModified\":\"2021-12-19T05:15:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/\"},\"wordCount\":83,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lmceric.top\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/R-C-1.jpg\",\"keywords\":[\"\u4eba\u5de5\u667a\u80fd\",\"\u795e\u7ecf\u7f51\u7edc\"],\"articleSection\":[\"\u6280\u672f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/\",\"url\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/\",\"name\":\"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc - LMC\u7684\u4e2a\u4eba\u7ad9\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lmceric.top\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/R-C-1.jpg\",\"datePublished\":\"2021-12-19T05:15:03+00:00\",\"dateModified\":\"2021-12-19T05:15:04+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/#primaryimage\",\"url\":\"https:\\\/\\\/lmceric.top\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/R-C-1.jpg\",\"contentUrl\":\"https:\\\/\\\/lmceric.top\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/R-C-1.jpg\",\"width\":2268,\"height\":1322},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/2021\\\/12\\\/19\\\/93\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/lmceric.top\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#website\",\"url\":\"https:\\\/\\\/lmceric.top\\\/\",\"name\":\"LMC\u7684\u4e2a\u4eba\u7ad9\",\"description\":\"\u5b64\u5e06\u8fdc\u5f71\u78a7\u7a7a\u5c3d\uff0c\u552f\u89c1\u957f\u6c5f\u5929\u9645\u6d41\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/lmceric.top\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/lmceric.top\\\/#\\\/schema\\\/person\\\/1edca9cfe5ff17dbe947c332a66ee539\",\"name\":\"SimpleAstronaut\",\"sameAs\":[\"http:\\\/\\\/lmceric.top\"],\"url\":\"https:\\\/\\\/lmceric.top\\\/index.php\\\/author\\\/simpleastronaut\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc - LMC\u7684\u4e2a\u4eba\u7ad9","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/","og_locale":"zh_CN","og_type":"article","og_title":"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc - LMC\u7684\u4e2a\u4eba\u7ad9","og_description":"\u4ecb\u7ecd \u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\uff08Deep Neural Net&#8230;","og_url":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/","og_site_name":"LMC\u7684\u4e2a\u4eba\u7ad9","article_published_time":"2021-12-19T05:15:03+00:00","article_modified_time":"2021-12-19T05:15:04+00:00","og_image":[{"width":2268,"height":1322,"url":"https:\/\/lmceric.top\/wp-content\/uploads\/2021\/12\/R-C-1.jpg","type":"image\/jpeg"}],"author":"SimpleAstronaut","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"SimpleAstronaut","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/#article","isPartOf":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/"},"author":{"name":"SimpleAstronaut","@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539"},"headline":"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc","datePublished":"2021-12-19T05:15:03+00:00","dateModified":"2021-12-19T05:15:04+00:00","mainEntityOfPage":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/"},"wordCount":83,"commentCount":0,"image":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/#primaryimage"},"thumbnailUrl":"https:\/\/lmceric.top\/wp-content\/uploads\/2021\/12\/R-C-1.jpg","keywords":["\u4eba\u5de5\u667a\u80fd","\u795e\u7ecf\u7f51\u7edc"],"articleSection":["\u6280\u672f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/","url":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/","name":"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc - LMC\u7684\u4e2a\u4eba\u7ad9","isPartOf":{"@id":"https:\/\/lmceric.top\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/#primaryimage"},"image":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/#primaryimage"},"thumbnailUrl":"https:\/\/lmceric.top\/wp-content\/uploads\/2021\/12\/R-C-1.jpg","datePublished":"2021-12-19T05:15:03+00:00","dateModified":"2021-12-19T05:15:04+00:00","author":{"@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539"},"breadcrumb":{"@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/#primaryimage","url":"https:\/\/lmceric.top\/wp-content\/uploads\/2021\/12\/R-C-1.jpg","contentUrl":"https:\/\/lmceric.top\/wp-content\/uploads\/2021\/12\/R-C-1.jpg","width":2268,"height":1322},{"@type":"BreadcrumbList","@id":"https:\/\/lmceric.top\/index.php\/2021\/12\/19\/93\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/lmceric.top\/"},{"@type":"ListItem","position":2,"name":"TensorFlow\u5b9e\u73b0\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc"}]},{"@type":"WebSite","@id":"https:\/\/lmceric.top\/#website","url":"https:\/\/lmceric.top\/","name":"LMC\u7684\u4e2a\u4eba\u7ad9","description":"\u5b64\u5e06\u8fdc\u5f71\u78a7\u7a7a\u5c3d\uff0c\u552f\u89c1\u957f\u6c5f\u5929\u9645\u6d41","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lmceric.top\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/lmceric.top\/#\/schema\/person\/1edca9cfe5ff17dbe947c332a66ee539","name":"SimpleAstronaut","sameAs":["http:\/\/lmceric.top"],"url":"https:\/\/lmceric.top\/index.php\/author\/simpleastronaut\/"}]}},"jetpack_featured_media_url":"https:\/\/lmceric.top\/wp-content\/uploads\/2021\/12\/R-C-1.jpg","_links":{"self":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":1,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":94,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/posts\/93\/revisions\/94"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/media\/95"}],"wp:attachment":[{"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lmceric.top\/index.php\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}