{"id":105873,"date":"2024-10-06T02:54:15","date_gmt":"2024-10-05T18:54:15","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=105873"},"modified":"2024-10-06T02:54:15","modified_gmt":"2024-10-05T18:54:15","slug":"pytorch-1-0-ai","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/pytorch-1-0-ai.html","title":{"rendered":"PyTorch 1.0\u5ba3\u5e03\u7528\u4e8e\u7814\u7a76\u548c\u751f\u4ea7AI\u9879\u76ee"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nPyTorch\u662f\u7528\u4e8ePython\u7684\u5f00\u6e90AI\u6846\u67b6\u8f6f\u4ef6\u5305\uff0c\u5177\u6709Tensor\u8ba1\u7b97\uff0c\u5305\u62ec\u5f3a\u5927\u7684GPU\u52a0\u901f\u548c\u5efa\u7acb\u4e8e\u57fa\u4e8e\u78c1\u5e26autodiff\u7cfb\u7edf\u4e4b\u4e0a\u7684\u6df1\u5ea6\u795e\u7ecf\u7f51\u7edc\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u8be5\u65b0\u7248\u672c\u7684\u91cd\u8981\u6027\u5728\u4e8e\uff0c\u51cf\u5c11\u4e86\u4ece\u7814\u7a76\u8fc7\u7a0b\u5230\u751f\u4ea7\u8fc7\u7a0b\u4e2d\u79fb\u52a8AI\u9a71\u52a8\u7684\u9879\u76ee\u6240\u9700\u7684\u65f6\u95f4\uff0c\u540c\u65f6\u63d0\u9ad8\u4e86\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u7684\u51c6\u786e\u5ea6\u548c\u6027\u80fd\u3002\u8fd9\u4e9b\u6539\u8fdb\u7684\u53d1\u751f\uff0c\u90e8\u5206\u662f\u56e0\u4e3a\u6df7\u5408\u524d\u7aef\u5728\u547d\u4ee4\u5f0f\u548c\u58f0\u660e\u5f0f\u6267\u884c\u6a21\u5f0f\u95f4\u7684\u8f6c\u6362\u3002
\nPyTorch\u7684\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e\uff0c\u5b83\u662f\u524d\u7aef\u5fc5\u4e0d\u53ef\u5c11\u7684\u90e8\u5206\uff0c\u5b83\u901a\u8fc7\u9002\u5e94\u6027\u53ef\u7f16\u7a0b\u6a21\u5f0f\u5b9e\u73b0\u8fed\u4ee3\u539f\u578b\u8bbe\u8ba1\u548c\u5b9e\u9a8c\u3002PyTorch\u7684\u7b2c\u4e00\u4e2a\u7248\u672c\u53d1\u5e03\u4e8e2017\u5e74\u65e9\u4e9b\u65f6\u5019\uff0c\u5176\u8f6f\u4ef6\u5305\u7684\u4e0b\u8f7d\u6b21\u6570\u5df2\u7ecf\u8d85\u8fc7\u4e86110\u4e07\u6b21\u3002Jia\u5c06\u5b83\u7684\u6d41\u884c\u5f52\u56e0\u4e8e\uff1a
\n\u5b83\u7684\u901f\u5ea6\u3001\u751f\u4ea7\u529b\u548c\u652f\u6301\u6700\u524d\u6cbfAI\u6a21\u578b\uff08\u5982\u52a8\u6001\u56fe\u5f62\uff09\u7684\u80fd\u529b\u8fc5\u901f\u4f7f\u4e4b\u6210\u4e3a\u6700\u53d7AI\u7814\u7a76\u4eba\u5458\u6b22\u8fce\u7684\u91cd\u8981\u5f00\u53d1\u5de5\u5177\u3002
\nPyTorch\u5e94\u7528\u7684\u4e00\u4e2a\u4f17\u6240\u5468\u77e5\u7684\u4f8b\u5b50\u662f\uff0c\u52a0\u5dde\u5927\u5b66\u4f2f\u514b\u5229\u5206\u6821\u8ba1\u7b97\u673a\u79d1\u5b66\u5bb6\u6240\u6784\u5efa\u7684\u9879\u76ee\uff0c\u5b83\u57fa\u4e8e\u5faa\u73af\u4e00\u81f4\u5bf9\u6297\u7f51\u7edc\u8fdb\u884c\u975e\u914d\u5bf9\u56fe\u5230\u56fe\u7684\u8f6c\u6362\u3002\u8be5\u9879\u76ee\u901a\u8fc7\u4f7f\u7528\u4e00\u7ec4\u5bf9\u9f50\u7684\u56fe\u50cf\u8bad\u7ec3\u96c6\u6765\u5b66\u4e60\u56fe\u50cf\u8f93\u5165\u548c\u8f93\u51fa\u6620\u5c04\u3002
\n\"\"
\nPyTorch\u76ee\u524d\u7684\u7248\u672c\u5df2\u7ecf\u53d6\u5f97\u4e86\u4e00\u4e9b\u6210\u679c\uff0c\u4e3aAI\u7814\u7a76\u3001\u5f00\u53d1\u548c\u751f\u4ea7\u89c4\u6a21\u4e0a\u7684\u6027\u80fd\u63d0\u4f9b\u4e86\u7075\u6d3b\u6027\uff0c\u4f46\u662f\uff0c\u4e5f\u5b58\u5728\u4e00\u4e9b\u6311\u6218\u3002Jia\u89e3\u91ca\u8bf4\uff1a
\n\u7531\u4e8e\u5b83\u548cPython\u7d27\u5bc6\u7684\u8026\u5408\uff0c\u6211\u4eec\u5e38\u5e38\u9700\u8981\u628a\u7814\u7a76\u4ee3\u7801\uff08\u65e0\u8bba\u662f\u8bad\u7ec3\u811a\u672c\u8fd8\u662f\u7ecf\u8fc7\u8bad\u7ec3\u7684\u6a21\u578b\uff09\u8f6c\u6362\u4e3aCaffe2\u4e2d\u7684\u56fe\u5f62\u6a21\u5f0f\u8868\u793a\uff0c\u4ee5\u5728\u751f\u4ea7\u89c4\u6a21\u4e0a\u8fd0\u884c\u3002Caffe2\u7684\u57fa\u4e8e\u56fe\u5f62\u6267\u884c\u7a0b\u5e8f\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u5229\u7528\u6700\u5148\u8fdb\u7684\u4f18\u5316\u6280\u672f\uff0c\u6bd4\u5982\u56fe\u5f62\u8f6c\u6362\u3001\u9ad8\u6548\u7684\u5185\u5b58\u91cd\u7528\u548c\u4e25\u683c\u7684\u786c\u4ef6\u63a5\u53e3\u96c6\u6210\u7b49\u7b49\u3002
\n\u53e6\u5916\uff0cPyTorch 1.0 \u96c6\u6210\u4e86Caffe2\u548cONNX\u7684\u529f\u80fd\uff0c\u5e76\u628a\u5b83\u4e0ePyTorch\u7684\u80fd\u529b\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u4ee5\u63d0\u4f9b\u4ece\u7814\u7a76\u539f\u578b\u5230\u751f\u4ea7\u90e8\u7f72\u7684\u65e0\u7f1d\u8def\u5f84\u3002\u901a\u8fc7\u5229\u7528Caffe2\uff0c\u5efa\u7acbPyTorch\u4f9d\u8d56\u5173\u7cfb\u7684\u516c\u53f8\u4e5f\u80fd\u591f\u671f\u671b\u83b7\u5f97\u5bf9\u66f4\u5927\u7684\u89c4\u6a21\u548c\u53ef\u9760\u6027\u7684\u652f\u6301\u3002PyTorch\u535a\u5ba2\u66f4\u8fdb\u4e00\u6b65\u89e3\u91ca\u4e86\u4f7f\u7528Caffe2\u7684\u91cd\u8981\u6027\uff1a
\n\u521d\u521b\u4f01\u4e1a\u3001\u5927\u516c\u53f8\u548c\u4efb\u4f55\u5e0c\u671b\u56f4\u7ed5PyTorch\u6784\u5efa\u4ea7\u54c1\u7684\u4eba\u90fd\u8981\u6c42\u83b7\u5f97\u4ea7\u54c1\u652f\u6301\u3002\u5728\u8138\u4e66\uff08PyTorch\u7684\u6700\u5927\u5229\u76ca\u76f8\u5173\u8005\uff09\uff0c\u6211\u4eec\u62e5\u6709Caffe2\uff0c\u5b83\u5df2\u7ecf\u662f\u751f\u4ea7\u5c31\u7eea\u5e73\u53f0\uff0c\u8fd0\u884c\u4e8e\u6211\u4eec\u7684\u6570\u636e\u4e2d\u5fc3\uff0c\u5e76\u5411\u6a2a\u8de88\u4ee3iPhone\u4ee5\u53ca6\u4ee3\u5b89\u5353CPU\u67b6\u6784\u7684\u8d85\u8fc710\u4ebf\u90e8\u624b\u673a\u4ea4\u4ed8\u4ea7\u54c1\u3002\u5b83\u5728Inter\/ARM\u3001TensorRT\u652f\u6301\u4ee5\u53ca\u6240\u6709\u751f\u4ea7\u6240\u9700\u7684\u4f4d\u6570\u4e0a\u6709\u670d\u52a1\u5668\u4f18\u5316\u63a8\u7406\u3002\u8003\u8651\u5230\u6240\u6709\u8fd9\u4e9b\u4ef7\u503c\u9501\u5b9a\u5728PyTorch\u56e2\u961f\u4e0e\u5176\u5bc6\u5207\u5408\u4f5c\u7684\u5e73\u53f0\u4e0a\uff0c\u6211\u4eec\u51b3\u5b9a\u628aPyTorch\u548cCaffe2\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u4ece\u800c\u4e3aPyTorch\u63d0\u4f9b\u751f\u4ea7\u7ea7\u51c6\u5907\u3002
\nONNX\u662f\u4e00\u79cd\u5f00\u653e\u683c\u5f0f\uff0c\u7528\u4e8e\u8868\u793a\u90a3\u4e9b\u80fd\u591f\u5728\u4e0d\u540cAI\u6846\u67b6\u4e4b\u95f4\u4ea4\u6362\u7684\u6df1\u5ea6\u5b66\u4e60\u6a21\u578b\u3002\u5728PyTorch 1.0\u4e2d\uff0cONNX\u662f\u672c\u5730\u652f\u6301\u7684\u5bfc\u51fa\u6a21\u578b\u3002\u5b83\u4e5f\u4e3a\u52a0\u901f\u8fd0\u884c\u65f6\u95f4\u548c\u786c\u4ef6\u7279\u5b9a\u5e93\u63d0\u4f9b\u4e86\u63a5\u53e3\u3002Jia\u63d0\u5230\u4e86\u8fd9\u79cd\u65b9\u6cd5\u7684\u4e00\u4e9b\u597d\u5904\uff1a
\n\u5b83\u7ed9\u4e88\u5f00\u53d1\u4eba\u5458\u5b8c\u5168\u7684\u81ea\u7531\uff0c\u4ee5\u6df7\u5408\u548c\u5339\u914d\u6700\u597d\u7684AI\u6846\u67b6\u548c\u5de5\u5177\uff0c\u800c\u65e0\u9700\u627f\u62c5\u8d44\u6e90\u5bc6\u96c6\u578b\u7684\u5b9a\u5236\u5de5\u7a0b\u3002
\nPyTorch\u9879\u76ee\u671f\u671b\u4e8e2018\u5e74\u590f\u5b63\u7684\u67d0\u4e2a\u65f6\u5019\u53d1\u5e031.0\u7248\u672c\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u5176GitHup repo\u4e0a\u67e5\u770bpull requests\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.linuxidc.com\/Linux\/2018-05\/152491.htm<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/pytorch-1-0-ai.html<\/a>\u7f16\u8f91\uff1a\u7a0b\u4f1f\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb PyTorch\u662f\u7528\u4e8ePython\u7684\u5f00\u6e90AI\u6846\u67b6\u8f6f\u4ef6\u5305\uff0c\u5177\u6709Tensor\u8ba1\u7b97\uff0c\u5305\u62ec\u5f3a\u5927\u7684GPU\u52a0\u901f\u548c\u5efa\u7acb\u4e8e […]<\/p>\n","protected":false},"author":63,"featured_media":105875,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-105873","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/105873","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=105873"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/105873\/revisions"}],"predecessor-version":[{"id":106204,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/105873\/revisions\/106204"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/105875"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=105873"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=105873"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=105873"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}