{"id":347,"date":"2019-10-21T00:18:48","date_gmt":"2019-10-21T00:18:48","guid":{"rendered":"https:\/\/3dfpo.swarthmore.edu\/?p=347"},"modified":"2020-08-31T14:24:54","modified_gmt":"2020-08-31T14:24:54","slug":"should-you-switch-to-tensorflow-2-0","status":"publish","type":"post","link":"https:\/\/3dfpo.swarthmore.edu\/?p=347","title":{"rendered":"Should You Switch To TensorFlow 2.0"},"content":{"rendered":"<p>TensorFlow 2.0 officially released on September 30th, 2019. If you&#8217;re about to start a new ML project like me you may be a bit confused about which version of TensorFlow you should use. After all, Python 3 was released in 2008 and support for Python 2.7 will finally case on January 1st, 2020. Granted, that&#8217;s not a perfect comparison but TensorFlow 1.x has been around since 2015 and there are numerous articles, tutorials, and support forums to guide you to success using TensorFlow 1.x.\u00a0 I&#8217;m here to tell you that you should switch to TensorFlow 2.0 for your next machine learning project.<\/p>\n<h3>A Few Of The Key Changes In TensorFlow 2.0<\/h3>\n<p>In short, TensorFlow 2.0 is more user-friendly and easier to debug than TensorFlow 1.x. This all comes down to the fact that\u00a0TensorFlow 2.0 has eager execution by default. This means that you no longer have to stitch together the graph by making tf.*! In addition, there are no more globals meaning it is now easier to keep track of your variables and their scopes.\u00a0 Last, but certainly not least is that TensorFlow 2.0 will support legacy code from TensorFlow 1.x.<\/p>\n<p>With all that out of the way, it&#8217;s easy to see that TensorFlow 2.0 is a good choice for your next project. Now on to learning\u00a0TensorFlow 2.0.<\/p>\n<h3>Tutorials And DocumentationExist For TensorFlow 2.0!<\/h3>\n<p><a href=\"https:\/\/youtu.be\/6g4O5UOH304\">freeCodeCamp&#8217;s Tutorial<\/a><\/p>\n<p><a href=\"https:\/\/www.coursera.org\/learn\/introduction-tensorflow?ranMID=40328&amp;ranEAID=2Oj8BANogGs&amp;ranSiteID=2Oj8BANogGs-DMWDr40m1KJ1xdFImDO2iw&amp;siteID=2Oj8BANogGs-DMWDr40m1KJ1xdFImDO2iw&amp;utm_content=10&amp;utm_medium=partners&amp;utm_source=linkshare&amp;utm_campaign=2Oj8BANogGs\">Coursera Course<\/a><\/p>\n<p><a href=\"https:\/\/www.tensorflow.org\/tutorials\/quickstart\/beginner\">MNIST W\/ Google Collab<\/a><\/p>\n<p><a href=\"https:\/\/www.tensorflow.org\/guide\">Documentation<\/a><\/p>\n<h3>Sources And More Reading<\/h3>\n<p>https:\/\/towardsdatascience.com\/whats-new-in-tensorflow-2-0-ce75cdd1a4d1<\/p>\n<p>https:\/\/www.tensorflow.org\/guide\/effective_tf2<\/p>\n<p>https:\/\/medium.com\/tensorflow\/effective-tensorflow-2-0-best-practices-and-whats-changed-a0ca48767aff<\/p>\n<p>https:\/\/hackernoon.com\/everything-you-need-to-know-about-tensorflow-2-0-b0856960c074<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TensorFlow 2.0 officially released on September 30th, 2019. If you&#8217;re about to start a new ML project like me you may be a bit confused about which version of TensorFlow you should use. After all, Python 3 was released in 2008 and support for Python 2.7 will finally case on January 1st, 2020. Granted, that&#8217;s &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/3dfpo.swarthmore.edu\/?p=347\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Should You Switch To TensorFlow 2.0&#8221;<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[4],"_links":{"self":[{"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=\/wp\/v2\/posts\/347"}],"collection":[{"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=347"}],"version-history":[{"count":4,"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":357,"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions\/357"}],"wp:attachment":[{"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/3dfpo.swarthmore.edu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}