{"id":86,"date":"2021-05-25T11:00:56","date_gmt":"2021-05-25T18:00:56","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/windowsai\/?p=86"},"modified":"2021-05-26T14:23:14","modified_gmt":"2021-05-26T21:23:14","slug":"using-tensorflow-directml-for-online-courses","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/windowsai\/using-tensorflow-directml-for-online-courses\/","title":{"rendered":"Using TensorFlow-DirectML for online courses"},"content":{"rendered":"<h3 style=\"text-align: center;\"><strong>The easiest way to get GPU acceleration for Jupyter Notebooks on Windows 10 and WSL<\/strong><\/h3>\n<p>Are you learning about Machine Learning or interested in doing so? There are a wide variety of online courses available today that provide you with in-depth knowledge about ML. Many of these courses use <a href=\"http:\/\/jupyterlab.io\/\">Jupyter Notebooks<\/a>, an open source software for interactive computing providing a clean interface to write and execute code, alongside TensorFlow, a software framework for traditional ML and deep learning tasks. Training deep learning models can be compute intensive. Luckily, GPUs massive parallelization capabilities can be quite effective at speeding up the training of such models. And now, with <a href=\"https:\/\/pypi.org\/project\/tensorflow-directml\/\">TensorFlow-DirectML<\/a>, you can get high-performance, GPU accelerated training on the breadth of Windows hardware.<\/p>\n<p>The best part is that installing TensorFlow-DirectML is as simple as running \u201cpip install tensorflow-directml\u201d in your Python environment of choice. (For additional information on installing and running TensorFlow-DirectML, please visit the <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/direct3d12\/gpu-tensorflow-windows\">documentation<\/a>). After installation, when you open a Jupyter Notebook in your Python environment and run a TensorFlow script, you will <em>automatically<\/em> get GPU acceleration on any Windows device, no changes necessary! You will see \u201cUsing TensorFlow backend\u201d at the bottom of the first code block, like the image below:<a href=\"https:\/\/devblogs.microsoft.com\/windowsai\/wp-content\/uploads\/sites\/71\/2021\/05\/Tf-DML-Jupyter.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-140\" src=\"https:\/\/devblogs.microsoft.com\/windowsai\/wp-content\/uploads\/sites\/71\/2021\/05\/Tf-DML-Jupyter.png\" alt=\"Image Tf DML Jupyter\" width=\"1596\" height=\"655\" srcset=\"https:\/\/devblogs.microsoft.com\/windowsai\/wp-content\/uploads\/sites\/71\/2021\/05\/Tf-DML-Jupyter.png 1596w, https:\/\/devblogs.microsoft.com\/windowsai\/wp-content\/uploads\/sites\/71\/2021\/05\/Tf-DML-Jupyter-300x123.png 300w, https:\/\/devblogs.microsoft.com\/windowsai\/wp-content\/uploads\/sites\/71\/2021\/05\/Tf-DML-Jupyter-1024x420.png 1024w, https:\/\/devblogs.microsoft.com\/windowsai\/wp-content\/uploads\/sites\/71\/2021\/05\/Tf-DML-Jupyter-768x315.png 768w, https:\/\/devblogs.microsoft.com\/windowsai\/wp-content\/uploads\/sites\/71\/2021\/05\/Tf-DML-Jupyter-1536x630.png 1536w\" sizes=\"(max-width: 1596px) 100vw, 1596px\" \/><\/a><\/p>\n<p>A great course to start with is the <a href=\"https:\/\/www.coursera.org\/learn\/neural-networks-deep-learning?specialization=deep-learning\">Neural Networks and Deep Learning Coursera course<\/a>, but we encourage you to use Tensorflow-DirectML for any TensorFlow related course. In order to use TensorFlow-DirectML, you must be running in a local Python environment on Windows 10 or WSL. Some online courses require the use of web based Jupyter notebooks to receive credit, and in this case you will not be able to use TensorFlow-DirectML.<\/p>\n<p>Try it out today! Your feedback is important to us, so please reach out with any suggestions, questions, or issues on our <a href=\"https:\/\/github.com\/microsoft\/tensorflow-directml\">GitHub<\/a>. Show us what you&#8217;re learning by tagging #TensorFlowDirectML on Twitter or mention Tensorflow-DirectML on Reddit, and stay tuned to the Windows AI Blog for more updates!<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 8pt;\">* TensorFlow, the TensorFlow logo and any related marks are trademarks of Google Inc.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn about the easiest way to get GPU acceleration for Jupyter Notebooks on Windows 10 and WSL.<\/p>\n","protected":false},"author":60022,"featured_media":74,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[4,5],"class_list":["post-86","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-ai","tag-directml","tag-tensorflow"],"acf":[],"blog_post_summary":"<p>Learn about the easiest way to get GPU acceleration for Jupyter Notebooks on Windows 10 and WSL.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/posts\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/users\/60022"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/posts\/86\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/media\/74"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/media?parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/categories?post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/windowsai\/wp-json\/wp\/v2\/tags?post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}