Searched refs:_default_graph_stack (Results 1 – 4 of 4) sorted by relevance
3999 return _default_graph_stack.get_controller(self)5614 _default_graph_stack = _DefaultGraphStack() variable5626 if not _default_graph_stack.stack:5647 …outer_context = _default_graph_stack._GetGlobalDefaultGraph().as_default # pylint: disable=protec…5942 _default_graph_stack._global_default_graph is not None) # pylint: disable=protected-access6018 if not _default_graph_stack.is_cleared():6022 _default_graph_stack.reset()6041 return _default_graph_stack.get_default()6046 return len(_default_graph_stack.stack) >= 1
2833 self.assertEqual(len(ops._default_graph_stack.stack), 0)2835 self.assertEqual(len(ops._default_graph_stack.stack), 1)2837 self.assertGreater(len(ops._default_graph_stack.stack), 1)2839 self.assertEqual(len(ops._default_graph_stack.stack), 1)2841 self.assertEqual(len(ops._default_graph_stack.stack), 0)2849 self.assertEqual(len(ops._default_graph_stack.stack), 0)2851 self.assertGreater(len(ops._default_graph_stack.stack), 0)2852 self.assertEqual(len(ops._default_graph_stack.stack), 0)
2063 ops._default_graph_stack.reset() # pylint: disable=protected-access
231 ops_lib._default_graph_stack.reset() # pylint: disable=protected-access246 ops_lib._default_graph_stack.reset() # pylint: disable=protected-access