{"id":5260,"date":"2016-11-18T03:09:55","date_gmt":"2016-11-18T03:09:55","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=5260"},"modified":"2016-11-18T03:09:55","modified_gmt":"2016-11-18T03:09:55","slug":"fixing-error-attributeerror-module-object-no-attribute-global_variables_initializer","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-error-attributeerror-module-object-no-attribute-global_variables_initializer\/","title":{"rendered":"Fixing error &#8221; AttributeError: &#8216;module&#8217; object has no attribute &#8216;global_variables_initializer'&#8221;"},"content":{"rendered":"<p>For the following TensorFlow error:<\/p>\n<pre lang=\"python\">\n AttributeError: 'module' object has no attribute 'global_variables_initializer'\n<\/pre>\n<p>You need to do a find and replace, of &#8220;global_variables_initializer&#8221; to &#8220;tf.initialize_all_variables&#8221; (this was changed in an upgrade)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fixing a python error in TensorFlow<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[447,540],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5260"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=5260"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/5260\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=5260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=5260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=5260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}