def close_session ( self ) : with self . _graph . as_default ( ) : self . _sess . close ( ) self . _sess = None
oload a frozen graph in tensorflow python
Close tensorflow session . Exposes for memory management .
def close_session(self):
        """ Close tensorflow session. Exposes for memory management. """
        with self._graph.as_default():
            self._sess.close()
            self._sess = None