AttributeError: 'NoneType' object has no attribute 'TF ...
github.com › tensorflow › tensorflowMar 23, 2017 · if self._session is not None: try: status = c_api_util.ScopedTFStatus() if self._created_with_new_api: tf_session.TF_DeleteSession(self._session, status) else: tf_session.TF_DeleteDeprecatedSession(self._session, status) except AttributeError: # At shutdown, `c_api_util` or `tf_session` may have been garbage # collected, causing the above method calls to fail.