{"id":383,"date":"2021-11-05T00:49:39","date_gmt":"2021-11-04T15:49:39","guid":{"rendered":"http:\/\/blog.gurees.net\/?p=383"},"modified":"2021-11-05T00:49:39","modified_gmt":"2021-11-04T15:49:39","slug":"radeon%e3%81%a0%e3%81%91%e3%81%a9ml%e3%81%8c%e3%81%97%e3%81%9f%e3%81%84%ef%bc%81directml%e3%81%a7%e9%81%8a%e3%82%93%e3%81%a7%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.gurees.net\/?p=383","title":{"rendered":"Radeon\u3060\u3051\u3069ML\u304c\u3057\u305f\u3044\uff01(DirectML\u3067\u904a\u3093\u3067\u307f\u308b)"},"content":{"rendered":"\n<p>\u57fa\u672c\u7684\u306bAMD\u304c\u591a\u3044\u79c1\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u74b0\u5883\u3067\u3059\u304c\u3001\u3053\u3068\u30de\u30b7\u30f3\u30e9\u30fc\u30cb\u30f3\u30b0\u306b\u304a\u3044\u3066\u3001CUDA\u304c\u30b5\u30dd\u30fc\u30c8\u304c\u57fa\u672c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3088\u306d\u3002<br>TensorFlow\u3084PyTorch\u3067\u306f\u6a19\u6e96\u306eGPU\u30b5\u30dd\u30fc\u30c8\u306fCUDA\u304c\u5bfe\u8c61\u3064\u307e\u308aNVIDIA\u306eGPU\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u524d\u306fKeras+PlaidML\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u6642\u671f\u3082\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u3069\u3046\u306b\u3082\u66f4\u65b0\u304c\u6700\u8fd1\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3082\u3042\u308a\u3001\u7d50\u5c40GeForce\u306b\u79fb\u884c\u3057\u3066TensorFlowGPU\u3092\u4f7f\u3063\u3066\u3044\u305f\u308a\u3057\u3066\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6700\u8fd1\u3001DirectML\u306e\u5b58\u5728\u3092\u77e5\u308a\u307e\u3057\u305f\u3002GPU\u3092\u4f7f\u3046\u306e\u306bCUDA\u3067\u306f\u306a\u304f\u3001DirectX12\u3092\u4f7f\u3046\u3053\u3068\u3067NVIDIA\u4ee5\u5916\u306eGPU\u304c\u4f7f\u3048\u308b\u307f\u305f\u3044\u3067\u3059\u3002\u4eca\u3069\u304d\u306eGPU\u306a\u3089\u5927\u62b5DirectX12\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u308b\u306f\u305a\u3002\u3064\u307e\u308aRadeon\u3067\u3082\u30de\u30b7\u30f3\u30e9\u30fc\u30cb\u30f3\u30b0\u304c\u3067\u304d\u308b\u30c1\u30e3\u30f3\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Linux\u3060\u3068ROCm\u306e\u9078\u629e\u80a2\u3082\u3042\u308a\u306e\u3088\u3046\u3067\u3059\u304c\u3001\u6b63\u76f4\u4f7f\u3063\u305f\u3053\u3068\u306f\u306a\u3044\u306e\u3067\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>DirectML\u306fTensorFlow1.15.5\u306e\u3088\u3046\u3067\u3059\u3002TensorFlow\u306f2\u3057\u304b\u89e6\u3063\u305f\u3053\u3068\u304c\u306a\u304f\u3001\u3061\u3087\u3063\u3068\u3053\u306e\u8fba\u306f\u8981\u52c9\u5f37\u304b\u306a\u3002<\/p>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u52d5\u304b\u3057\u3066\u307f\u308b\u306e\u3092\u76ee\u7684\u306b\u3057\u307e\u3059\u3002<br>\u307e\u305aPython\u306fPython 3.6.8\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br><a rel=\"noreferrer noopener\" href=\"https:\/\/www.python.org\/downloads\/release\/python-368\/\" target=\"_blank\">https:\/\/www.python.org\/downloads\/release\/python-368\/<\/a><\/p>\n\n\n\n<p>\u6b21\u306bTensorFlow-DirectML\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u73fe\u6642\u70b9\u3067\u6700\u65b0\u7248\u306e1.15.5\u3092\u5165\u308c\u307e\u3059\u3002\u3053\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304b\u3089PRE-RELEASE\u3058\u3083\u306a\u3044\u3088\u3046\u3067\u3059\u3002pip\u3067\u4e00\u767a\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install tensorflow-directml==1.15.5<\/pre>\n\n\n\n<p>\u6b21\u306bKeras\u304c\u306a\u3044\u3068\u30c0\u30e1\u306a\u4eba\u306a\u306e\u3067Keras\u3092\u5165\u308c\u307e\u3059\u3002TensowFlow\u304c1.15.5\u306a\u306e\u3067\u3001\u305d\u308c\u306b\u5408\u308f\u305b\u3066Keras\u306f2.3.1\u304c\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install keras==2.3.1<\/pre>\n\n\n\n<p>\u3042\u3068\u306f\u3088\u304f\u4f7f\u3046\u3082\u306e\u3082\u9069\u5f53\u306b\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install matplotlib opencv-python matplotlib pydot<\/pre>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3060\u3051\u3067\u3001Radeon\u3092\u4f7f\u3063\u3066TensorFlow\u3092\u52d5\u304b\u305b\u307e\u3059\u3002<br>\u540c\u4e00\u30cf\u30fc\u30c9\u3092\u4f7f\u3063\u305f\u691c\u8a3c\u306f\u307e\u3060\u3067\u304d\u3066\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u304a\u3093\u306a\u3058\u30e2\u30c7\u30eb\u3067\u52d5\u304b\u3057\u305f\u611f\u3058 PlaidML\u306b\u6bd4\u3079\u3066\u521d\u671f\u5316\u306f\u65e9\u304f\u3001\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u306f\u5c11\u306a\u3044\u3088\u3046\u306b\u601d\u3048\u307e\u3057\u305f\u3002\u305d\u3082\u305d\u3082VRAM\u306e\u9055\u3046\u74b0\u5883\u306a\u306e\u3067\u305d\u306e\u5f71\u97ff\u306e\u53ef\u80fd\u6027\u306f\u3042\u308a\u307e\u3059\u304c\u2026\u2026\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u901f\u5ea6\u306fVega8(512 SP)&amp;DirectML\u30675.5Sec\u3001RX5700XT(2560 SP)&amp; PlaidML \u30671.54Sec\u7a0b\u5ea6\u3067\u3057\u305f\u3002\u30af\u30ed\u30c3\u30af\u306fVega8\u304c\u7d04800MHz\u3067 RX5700XT \u306f1.6GHz\u4ee5\u4e0a\u3042\u308b\u306e\u3067\u3001SP\u6570\u306e\u5dee\u3068\u30af\u30ed\u30c3\u30af\u306e\u5dee\u3092\u8003\u3048\u308b\u3068 DirectML \u60aa\u304f\u306a\u3055\u305d\u3046\u306b\u601d\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306fRX5700XT\u306e\u74b0\u5883\u306b\u3082 DirectML  \u3092\u5165\u308c\u3066\u6bd4\u8f03\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u57fa\u672c\u7684\u306bAMD\u304c\u591a\u3044\u79c1\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u74b0\u5883\u3067\u3059\u304c\u3001\u3053\u3068\u30de\u30b7\u30f3\u30e9\u30fc\u30cb\u30f3\u30b0\u306b\u304a\u3044\u3066\u3001CUDA\u304c\u30b5\u30dd\u30fc\u30c8\u304c\u57fa\u672c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3088\u306d\u3002TensorFlow\u3084PyTorch\u3067\u306f\u6a19\u6e96\u306eGPU\u30b5\u30dd\u30fc\u30c8\u306fCUDA\u304c\u5bfe\u8c61\u3064\u307e\u308aNVIDIA\u306eG [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=383"}],"version-history":[{"count":1,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions"}],"predecessor-version":[{"id":384,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=\/wp\/v2\/posts\/383\/revisions\/384"}],"wp:attachment":[{"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.gurees.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}