{"id":1213,"date":"2023-04-16T11:46:25","date_gmt":"2023-04-16T03:46:25","guid":{"rendered":"http:\/\/www.wayln.com\/?p=1213"},"modified":"2023-04-16T11:46:25","modified_gmt":"2023-04-16T03:46:25","slug":"eager-mode%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.wayln.com\/?p=1213","title":{"rendered":"Eager Mode\u8be6\u89e3"},"content":{"rendered":"<div id=\"toc_container\" class=\"toc_transparent no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#EagerMode\"><span class=\"toc_number toc_depth_1\">1<\/span> EagerMode\u8bf4\u660e<\/a><\/li><li><a href=\"#EagerMode-2\"><span class=\"toc_number toc_depth_1\">2<\/span> EagerMode \u6570\u503c\u8fd0\u7b97<\/a><\/li><li><a href=\"#Eager_Mode\"><span class=\"toc_number toc_depth_1\">3<\/span> Eager Mode\u5f20\u91cf\u964d\u7ef4\u8fd0\u7b97<\/a><\/li><li><a href=\"#Eager_Mode-2\"><span class=\"toc_number toc_depth_1\">4<\/span> Eager Mode \u77e9\u9635\u8fd0\u7b97<\/a><\/li><\/ul><\/div>\n\n<h1><span id=\"EagerMode\">EagerMode\u8bf4\u660e<\/span><\/h1>\n<p>Eager Mode\u4e5f\u53eb\u4f5c\u52a8\u6001\u56fe\u6a21\u5f0f\uff0c\u662fTensorFloew 1.4\u4e4b\u540e\u7248\u672c\u4e2d\u91cd\u8981\u65b0\u7279\u5f81\u4e4b\u4e00\uff0c\u4e5f\u662fTensorFlow2.0\u4e3b\u6d41\u5199\u6cd5\u3002<\/p>\n<h1><span id=\"EagerMode-2\">EagerMode \u6570\u503c\u8fd0\u7b97<\/span><\/h1>\n<p>\u53ef\u4ee5\u901a\u8fc7tf\u51fd\u6570\u201cadd,subtract,multipy,divide\u201d\u8fdb\u884c\u6570\u503c\u8fd0\u7b97\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8fd0\u7b97\u7b26\u201c+\uff0c-\uff0c*\uff0c\/\u201d \u8fdb\u884c\u76f8\u540c\u7684\u6570\u503c\u8fd0\u7b97<\/p>\n<h1><span id=\"Eager_Mode\">Eager Mode\u5f20\u91cf\u964d\u7ef4\u8fd0\u7b97<\/span><\/h1>\n<ol>\n<li>reduce_mean<br \/>\n\u7528\u4e8e\u8ba1\u7b97\u5f20\u91cf\u5728\u6307\u5b9a\u7684\u6570\u8f74\uff08\u5f20\u91cf\u7684\u67d0\u4e00\u7ef4\u5ea6\uff09\u4e0a\u7684\u5e73\u5747\u503c\uff0c\u4e3b\u8981\u7528\u4e8e\u964d\u7ef4\u6216\u8ba1\u7b97\u5f20\u91cf\u7684\u5e73\u5747\u503c<\/li>\n<li>reduce_sum<br \/>\n\u7528\u4e8e\u8ba1\u7b97\u5f20\u91cf\u6cbf\u7740\u6307\u5b9a\u7684\u6570\u8f74\u4e0a\u7684\u7d2f\u52a0\u548c\uff0c\u4e3b\u8981\u7528\u4e8e\u964d\u7ef4\u6216\u8ba1\u7b97\u5f20\u91cf\uff08\u56fe\u50cf\uff09\u7684\u7d2f\u52a0\u548c<\/li>\n<li>reduce_any<\/li>\n<li>reduce_all<\/li>\n<li>reduce_prod<\/li>\n<li>reduce_max<\/li>\n<li>reduce_min<\/li>\n<\/ol>\n<h1><span id=\"Eager_Mode-2\">Eager Mode \u77e9\u9635\u8fd0\u7b97<\/span><\/h1>\n<ol>\n<li>tf.diag()<\/li>\n<li>tf.matmul()<\/li>\n<li>tf.batch_matmul()<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Contents1 EagerMode\u8bf4\u660e2 EagerMode \u6570\u503c\u8fd0\u7b973 Eager Mode\u5f20\u91cf\u964d\u7ef4\u8fd0\u7b97 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,49,2],"tags":[],"class_list":["post-1213","post","type-post","status-publish","format-standard","hentry","category-tensorflow","category-49","category-2"],"_links":{"self":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1213"}],"version-history":[{"count":1,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1213\/revisions"}],"predecessor-version":[{"id":1214,"href":"https:\/\/www.wayln.com\/index.php?rest_route=\/wp\/v2\/posts\/1213\/revisions\/1214"}],"wp:attachment":[{"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wayln.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}