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

Method get_default

tensorflow/python/framework/ops.py:5532–5537  ·  view source on GitHub ↗

Override that returns a global default if the stack is empty.

(self)

Source from the content-addressed store, hash-verified

5530 self._global_default_graph = None
5531
5532 def get_default(self):
5533 """Override that returns a global default if the stack is empty."""
5534 ret = super(_DefaultGraphStack, self).get_default()
5535 if ret is None:
5536 ret = self._GetGlobalDefaultGraph()
5537 return ret
5538
5539 def _GetGlobalDefaultGraph(self):
5540 if self._global_default_graph is None:

Callers

nothing calls this directly

Calls 2

get_defaultMethod · 0.45

Tested by

no test coverage detected