Searched refs:_default_graph_stack (Results 1 – 4 of 4) sorted by relevance
3913 return _default_graph_stack.get_controller(self)5493 _default_graph_stack = _DefaultGraphStack() variable5565 if not _default_graph_stack.stack:5586 …outer_context = _default_graph_stack._GetGlobalDefaultGraph().as_default # pylint: disable=protec…5767 _default_graph_stack._global_default_graph is not None) # pylint: disable=protected-access5841 if not _default_graph_stack.is_cleared():5845 _default_graph_stack.reset()5864 return _default_graph_stack.get_default()5868 return len(_default_graph_stack.stack) >= 1
2312 self.assertEqual(len(ops._default_graph_stack.stack), 0)2314 self.assertEqual(len(ops._default_graph_stack.stack), 1)2316 self.assertGreater(len(ops._default_graph_stack.stack), 1)2318 self.assertEqual(len(ops._default_graph_stack.stack), 1)2320 self.assertEqual(len(ops._default_graph_stack.stack), 0)2328 self.assertEqual(len(ops._default_graph_stack.stack), 0)2330 self.assertGreater(len(ops._default_graph_stack.stack), 0)2331 self.assertEqual(len(ops._default_graph_stack.stack), 0)
1538 ops._default_graph_stack.reset() # pylint: disable=protected-access
235 ops_lib._default_graph_stack.reset() # pylint: disable=protected-access250 ops_lib._default_graph_stack.reset() # pylint: disable=protected-access