{"id":1094,"date":"2019-01-15T22:45:02","date_gmt":"2019-01-15T20:45:02","guid":{"rendered":"http:\/\/www.3deee.ch\/?p=1094"},"modified":"2019-01-18T18:34:48","modified_gmt":"2019-01-18T16:34:48","slug":"tensorflow-mit-grafikkarten-unterstuetzung-installieren","status":"publish","type":"post","link":"https:\/\/www.3deee.ch\/?p=1094","title":{"rendered":"Tensorflow mit Grafikkarten Unterst\u00fctzung installieren"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.tensorflow.org\">Tensorflow <\/a>ist eine Bibliothek, die sehr h\u00e4ufig mit Python verwendet wird um Deep Learning Probleme zu l\u00f6sen. Das k\u00f6nnen zum Beispiel Objekterkennung in Bildern sein, Styletransfer von Bildern wie ihr es vielleicht von Apps wie DeepArt und Prisma kennt oder Sprachtools, die z.B.  Stimmung eines Tweets erkennen k\u00f6nnen. Ich verwende Tensorflow sehr viel mit <a href=\"http:\/\/keras.io\">Keras<\/a> als API um verschiedene Sachen auszuprobieren.<\/p>\n\n\n\n<p>Wenn ihr nur schnell was testen wollt, m\u00fcsst ihr das \u00fcbrigens nicht zwingend installieren, ihr k\u00f6nnt auch das Online Tool <a href=\"https:\/\/colab.research.google.com\/notebooks\/welcome.ipynb#recent=true\">Google CoLab <\/a>benutzen, da habt ihr auch die M\u00f6glichkeit eine GPU zu verwenden und das sogar gratis. Dazu mehr in diesem<a href=\"http:\/\/www.3deee.ch\/?p=1095\"> Blogpost &#8222;Google CoLab mit GPU oder TPU verwenden&#8220;<\/a><\/p>\n\n\n\n<p>Einerseits kann man Tensorflow auf der CPU ausf\u00fchren, was mit den \u00fcblichen Beispielen wie z.B. MNIST auch relativ gut funktioniert. Vorallem, weil das relativ einfache Probleme sind, die aus einem \u00fcbersehbaren Datensatz ~10000 Daten mit kleinen Bildern 8&#215;8 Pixel bestehen.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<div class=\"GARD gard_async_mode\" id=\"google-ads-ksA3\" ><script async=\"async\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><div id=\"GARDasync_ksA3\"><\/div><script >(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div><script>\radUnit = document.getElementById(\"google-ads-ksA3\");\radWidth = adUnit.offsetWidth;\rif ( adWidth >= 999999 ) {\r\/* GETTING THE FIRST IF OUT OF THE WAY *\/ \r} else if ( adWidth >= 970 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:970px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"9924945823\\\"><\/ins>\";\r} else if ( adWidth >= 336 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:336px;height:280px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:100px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:50px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8448212620\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 250 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:250px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 234 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:234px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:200px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:150px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"7793371424\\\"><\/ins>\";\r} else if ( adWidth >= 125 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:125px;height:125px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:240px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_ksA3\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r}<\/script>\n\n\n\n<p><\/p>\n\n\n\n<h2>Installation von Tensorflow f\u00fcr die CPU<\/h2>\n\n\n\n<p>F\u00fcr die CPU kann man Tensorflow ganz einfach mit &#8222;pip install tensorflow&#8220; installieren und alle Tutorials im Grunde genommen schon mal ausprobieren, wenn man gen\u00fcgend Zeit hat.<\/p>\n\n\n\n<h2>Vorteil der GPU Unterst\u00fctzung<\/h2>\n\n\n\n<p>Der Vorteil einer GPU unterst\u00fctzen Variante von Tensorflow ist, dass das Modell viel schneller berechnet wird. Voraussetzung ist aber eine NVIDIA Grafikkarte!<\/p>\n\n\n\n<p>Ich habe heute einen kurzen Test einer Klassifizierung eines komplexen Modells gemacht. Auf der CPU brauchte ich trotz Intel i7 mit 8 Cores ca. 50 Sekunden.<br>Das gleiche Modell brauchte daf\u00fcr auf der GPU nur knapp 16 Sekunden!<\/p>\n\n\n\n<h2>Installation von Tensorflow f\u00fcr die GPU<\/h2>\n\n\n\n<p>\u00dcberpr\u00fcfe, dass du f\u00fcr deine Tensorflow Version die richtige Version von Cuda und cuDNN installierst. Andernfalls wird Tensorflow nicht starten.<\/p>\n\n\n\n<p>Tensorflow GPU Version 1.10.00 ben\u00f6tigt CudNN 7.4.2 f\u00fcr Cuda 9.0 und Cuda 9.0 &#8211;&gt; <a href=\"https:\/\/stackoverflow.com\/questions\/50622525\/which-tensorflow-and-cuda-version-combinations-are-compatible\">https:\/\/stackoverflow.com\/questions\/50622525\/which-tensorflow-and-cuda-version-combinations-are-compatible<\/a><\/p>\n\n\n\n<h2>1. Download &amp; Installation von cuDNN <\/h2>\n\n\n\n<ul><li>Sie ben\u00f6tigen ein Login, um cuDNN herunterzuladen unter &#8211;&gt; https:\/\/developer.nvidia.com\/rdp\/cudnn-download<\/li><li>W\u00e4hlen Sie CuDNN 7.4.2 f\u00fcr Cuda 9.0 und laden Sie es herunter.<\/li><li>extrahiere es nach z.B. &#8222;C:\\cudnn-9.0-v7.4.2.24&#8220;.<\/li><li>f\u00fcgen Sie die folgenden Pfade zu den Systemumgebungspfaden hinzu (&#8222;System &#8211;&gt; Erweiterte Systemeinstellungen &#8211;&gt; Umgebungsvariablen &#8211;&gt; Systemvariablen &#8211;&gt; Systemvariablen &#8211;&gt; Pfad<\/li><li>&#8211;&gt; &#8222;C:\\cudnn-9.0-v7.4.2.24&#8220;<\/li><li>&#8211;&gt; &#8222;C:\\cudnn-9.0-v7.4.2.24\\bin&#8220;<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"1024\" height=\"553\" src=\"http:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/CuDNN_Paths-1024x553.png\" alt=\"\" class=\"wp-image-1100\" srcset=\"https:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/CuDNN_Paths-1024x553.png 1024w, https:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/CuDNN_Paths-300x162.png 300w, https:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/CuDNN_Paths-768x415.png 768w, https:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/CuDNN_Paths.png 1266w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2>2. Download &amp; Installation von Cuda<\/h2>\n\n\n\n<ul><li>Laden Sie es von https:\/\/developer.nvidia.com\/cuda-90-download-archive herunter.<\/li><li>F\u00fchren Sie die exe aus<\/li><li>optional alle Patches herunterladen und ausf\u00fchren<\/li><\/ul>\n\n\n\n<p> <\/p>\n\n\n\n<div class=\"GARD gard_async_mode\" id=\"google-ads-DQE0\" ><script async=\"async\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><div id=\"GARDasync_DQE0\"><\/div><script >(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div><script>\radUnit = document.getElementById(\"google-ads-DQE0\");\radWidth = adUnit.offsetWidth;\rif ( adWidth >= 999999 ) {\r\/* GETTING THE FIRST IF OUT OF THE WAY *\/ \r} else if ( adWidth >= 970 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:970px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"9924945823\\\"><\/ins>\";\r} else if ( adWidth >= 336 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:336px;height:280px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:100px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:50px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8448212620\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 250 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:250px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 234 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:234px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:200px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:150px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"7793371424\\\"><\/ins>\";\r} else if ( adWidth >= 125 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:125px;height:125px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:240px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_DQE0\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r}<\/script>\n\n\n\n<p> <\/p>\n\n\n\n<h2>3. Tensorflow GPU installieren<\/h2>\n\n\n\n<ul><li><a href=\"https:\/\/www.tensorflow.org\/install\/\">Tensorflow Dokumentation<\/a><\/li><li>\u00d6ffnen eines Befehlszeilen-Tools<\/li><li>optional aktivieren Sie Ihre Umgebung<\/li><li>Installieren Sie Tensorflow f\u00fcr gpu \u00fcber pip mit dem folgenden Befehl:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install tensorflow-gpu<\/code><\/pre>\n\n\n\n<p> <\/p>\n\n\n\n<div class=\"GARD gard_async_mode\" id=\"google-ads-htMD\" ><script async=\"async\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><div id=\"GARDasync_htMD\"><\/div><script >(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div><script>\radUnit = document.getElementById(\"google-ads-htMD\");\radWidth = adUnit.offsetWidth;\rif ( adWidth >= 999999 ) {\r\/* GETTING THE FIRST IF OUT OF THE WAY *\/ \r} else if ( adWidth >= 970 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:970px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"9924945823\\\"><\/ins>\";\r} else if ( adWidth >= 336 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:336px;height:280px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:100px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:50px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8448212620\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 250 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:250px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 234 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:234px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:200px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:150px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"7793371424\\\"><\/ins>\";\r} else if ( adWidth >= 125 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:125px;height:125px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:240px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_htMD\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r}<\/script>\n\n\n\n<p> <\/p>\n\n\n\n<h2>4. Testen der Installation<\/h2>\n\n\n\n<p>Ich habe die folgenden Skripte verwendet, um die Installation in Python zu testen.<\/p>\n\n\n\n<p>Starte eine Python-Befehlszeile und f\u00fcgen Sie den folgenden Code ein, der von <a href=\"https:\/\/stackoverflow.com\/questions\/38559755\/how-to-get-current-available-gpus-in-tensorflow\">https:\/\/stackoverflow.com\/questions\/38559755\/how-to-get-current-available-gpus-in-tensorflow<\/a> stammt.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from tensorflow.python.client import device_lib\n \ndef get_available_gpus():\n    local_device_protos = device_lib.list_local_devices()\n    return [x.name for x in local_device_protos if x.device_type == 'GPU']\n \nget_available_gpus()<\/code><\/pre>\n\n\n\n<p>Das sollte zu der folgenden Ausgabe f\u00fchren, welche wegen den Grafikkartentypen unter umst\u00e4nden etwas anders ausf\u00e4llt:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2019-01-15 12:07:32.972950: I tensorflow\/core\/platform\/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2\n2019-01-15 12:07:33.371039: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:1405] Found device 0 with properties:\nname: GeForce GTX 1080 major: 6 minor: 1 memoryClockRate(GHz): 1.835\npciBusID: 0000:6e:00.0\ntotalMemory: 8.00GiB freeMemory: 6.59GiB\n2019-01-15 12:07:33.378653: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:1484] Adding visible gpu devices: 0\n2019-01-15 12:07:33.848854: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix:\n2019-01-15 12:07:33.852797: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:971]      0\n2019-01-15 12:07:33.855312: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:984] 0:   N\n2019-01-15 12:07:33.857936: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:1097] Created TensorFlow device (\/device:GPU:0 with 6353 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080, pci bus id: 0000:6e:00.0, compute capability: 6.1)\n['\/device:GPU:0']<\/code><\/pre>\n\n\n\n<p> <\/p>\n\n\n\n<div class=\"GARD gard_async_mode\" id=\"google-ads-7JZQ\" ><script async=\"async\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><div id=\"GARDasync_7JZQ\"><\/div><script >(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div><script>\radUnit = document.getElementById(\"google-ads-7JZQ\");\radWidth = adUnit.offsetWidth;\rif ( adWidth >= 999999 ) {\r\/* GETTING THE FIRST IF OUT OF THE WAY *\/ \r} else if ( adWidth >= 970 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:970px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"9924945823\\\"><\/ins>\";\r} else if ( adWidth >= 336 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:336px;height:280px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:100px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:50px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8448212620\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 250 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:250px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 234 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:234px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:200px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:150px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"7793371424\\\"><\/ins>\";\r} else if ( adWidth >= 125 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:125px;height:125px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:240px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_7JZQ\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r}<\/script>\n\n\n\n<p> <\/p>\n\n\n\n<p>\n\nUnd von <a href=\"https:\/\/www.tensorflow.org\/install\/pip\">https:\/\/www.tensorflow.org\/install\/pip<\/a> habe ich den folgenden Code-Schnipsel verwendet, um ihn zu testen.\n\n<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import tensorflow as tf\ntf.enable_eager_execution()\nprint(tf.reduce_sum(tf.random_normal([1000, 1000])))<\/code><\/pre>\n\n\n\n<p>Alternativ k\u00f6nnt ihr auch direkt in der Konsole, das folgende eingeben<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python -c \"import tensorflow as tf; tf.enable_eager_execution(); print(tf.reduce_sum(tf.random_normal([1000, 1000])))\"<\/code><\/pre>\n\n\n\n<p>Beide Varianten sollten zu folgendem Outpu f\u00fchren<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2019-01-15 12:09:09.964358: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:1484] Adding visible gpu devices: 0\n2019-01-15 12:09:09.967450: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix:\n2019-01-15 12:09:09.972484: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:971]      0\n2019-01-15 12:09:09.975102: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:984] 0:   N\n2019-01-15 12:09:09.977746: I tensorflow\/core\/common_runtime\/gpu\/gpu_device.cc:1097] Created TensorFlow device (\/job:localhost\/replica:0\/task:0\/device:GPU:0 with 6353 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080, pci bus id: 0000:6e:00.0, compute capability: 6.1)\ntf.Tensor(-1654.6039, shape=(), dtype=float32)<\/code><\/pre>\n\n\n\n<p> <\/p>\n\n\n\n<div class=\"GARD gard_async_mode\" id=\"google-ads-4SJE\" ><script async=\"async\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><div id=\"GARDasync_4SJE\"><\/div><script >(adsbygoogle = window.adsbygoogle || []).push({});<\/script><\/div><script>\radUnit = document.getElementById(\"google-ads-4SJE\");\radWidth = adUnit.offsetWidth;\rif ( adWidth >= 999999 ) {\r\/* GETTING THE FIRST IF OUT OF THE WAY *\/ \r} else if ( adWidth >= 970 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:970px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"9924945823\\\"><\/ins>\";\r} else if ( adWidth >= 336 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:336px;height:280px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:100px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 320 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:320px;height:50px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8448212620\\\"><\/ins>\";\r} else if ( adWidth >= 300 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:300px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 250 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:250px;height:250px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 234 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:234px;height:60px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:200px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:150px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"7793371424\\\"><\/ins>\";\r} else if ( adWidth >= 125 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:125px;height:125px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:600px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:240px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 728 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:728px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 468 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:468px;height:15px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 200 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:200px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 180 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:180px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 160 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:160px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r} else if ( adWidth >= 120 ) {\rdocument.getElementById(\"GARDasync_4SJE\").innerHTML = \"<ins class=\\\"adsbygoogle\\\" style=\\\"width:120px;height:90px;display:block;\\\" data-ad-client=\\\"ca-pub-2912967267075159\\\" data-ad-slot=\\\"8592377177\\\"><\/ins>\";\r}<\/script>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"979\" height=\"721\" src=\"http:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/TestTF_gpu_Installation.png\" alt=\"\" class=\"wp-image-1101\" srcset=\"https:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/TestTF_gpu_Installation.png 979w, https:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/TestTF_gpu_Installation-300x221.png 300w, https:\/\/www.3deee.ch\/wp-content\/uploads\/2019\/01\/TestTF_gpu_Installation-768x566.png 768w\" sizes=\"(max-width: 979px) 100vw, 979px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Tensorflow ist eine Bibliothek, die sehr h\u00e4ufig mit Python verwendet wird um Deep Learning Probleme zu l\u00f6sen. Das k\u00f6nnen zum Beispiel Objekterkennung in Bildern sein, Styletransfer von Bildern wie ihr es vielleicht von Apps wie DeepArt und Prisma kennt oder Sprachtools, die z.B. Stimmung eines Tweets erkennen k\u00f6nnen. Ich verwende&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1119,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[271,351],"tags":[347,350,346,348,349],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/posts\/1094"}],"collection":[{"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1094"}],"version-history":[{"count":3,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/posts\/1094\/revisions"}],"predecessor-version":[{"id":1104,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/posts\/1094\/revisions\/1104"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=\/wp\/v2\/media\/1119"}],"wp:attachment":[{"href":"https:\/\/www.3deee.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.3deee.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}