MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / close

Method close

tensorflow/python/client/session.py:1779–1792  ·  view source on GitHub ↗

Closes an `InteractiveSession`.

(self)

Source from the content-addressed store, hash-verified

1777 self._default_graph.__enter__()
1778
1779 def close(self):
1780 """Closes an `InteractiveSession`."""
1781 super(InteractiveSession, self).close()
1782 with InteractiveSession._count_lock:
1783 if not self._explicitly_closed:
1784 InteractiveSession._active_session_count -= 1
1785 self._explicitly_closed = True
1786 else:
1787 return
1788 if self._explicit_graph is not None:
1789 self._default_graph.__exit__(None, None, None)
1790 self._default_graph = None
1791 self._default_session.__exit__(None, None, None)
1792 self._default_session = None

Calls 2

closeMethod · 0.65
__exit__Method · 0.45