{"id":98,"date":"2023-05-13T19:14:00","date_gmt":"2023-05-14T00:14:00","guid":{"rendered":"https:\/\/overthinking.tech\/?p=98"},"modified":"2025-02-12T19:16:05","modified_gmt":"2025-02-13T01:16:05","slug":"tensorflow-on-amd-gpu-directml-tutorial-and-testing","status":"publish","type":"post","link":"https:\/\/overthinking.tech\/?p=98","title":{"rendered":"TensorFlow on AMD GPU! DirectML Tutorial and Testing"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"TensorFlow on AMD GPU! DirectML Tutorial and Testing.\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/gGog0djyTOc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>In this video I&#8217;m showing off DirectML, a tool made by Microsoft that let&#8217;s you use almost any GPU for machine learning acceleration. I show how to get it running, using an AMD GPU as the example. I also show how it makes my 3070ti slower than my 3060, so there&#8217;s times not to use it.<\/p>\n\n\n\n<p>Commands I use: curl <a href=\"https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-Linux-x86_64.sh\">https:\/\/repo.anaconda.com\/miniconda\/Miniconda3-latest-Linux-x86_64.sh<\/a> \\ -o Miniconda3-latest-Linux-x86_64.sh<br>bash Miniconda3-latest-Linux-x86_64.sh<br>conda create -n tensorflow-directml python=3.6<br>conda activate tensorflow-directml<br>pip install tensorflow-directml<br>python<br>import tensorflow as tf<br>print(tf.test.is_gpu_available())<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this video I&#8217;m showing off DirectML, a tool made by Microsoft that let&#8217;s you use almost any GPU for&hellip;<\/p>\n","protected":false},"author":1,"featured_media":99,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-98","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-youtube"],"_links":{"self":[{"href":"https:\/\/overthinking.tech\/index.php?rest_route=\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/overthinking.tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/overthinking.tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/overthinking.tech\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/overthinking.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=98"}],"version-history":[{"count":1,"href":"https:\/\/overthinking.tech\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/overthinking.tech\/index.php?rest_route=\/wp\/v2\/posts\/98\/revisions\/100"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/overthinking.tech\/index.php?rest_route=\/wp\/v2\/media\/99"}],"wp:attachment":[{"href":"https:\/\/overthinking.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/overthinking.tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/overthinking.tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}