Searched refs:_in_graph_mode (Results 1 – 12 of 12) sorted by relevance
404 self._in_graph_mode = not context.executing_eagerly()433 if not self._in_graph_mode:441 if context.executing_eagerly() and not self._in_graph_mode:553 if not self._in_graph_mode:861 in_graph_mode=self._in_graph_mode,862 deleter=self._handle_deleter if not self._in_graph_mode else None,1689 self._in_graph_mode = not context.executing_eagerly()1696 if self._in_graph_mode:1708 ops.device if self._in_graph_mode else ops.NullContextmanager)1736 graph_mode=self._in_graph_mode)[all …]
2314 self._in_graph_mode = not context.executing_eagerly()2315 if self._in_graph_mode:2331 if self._in_graph_mode and not self._building_function:2345 if (self._in_graph_mode and not self._building_function and2480 if self._in_graph_mode and not self._building_function:
1647 self._in_graph_mode = True1671 if context.executing_eagerly() and not self._in_graph_mode:
212 …if resource_variable_ops.is_resource_variable(v) and not v._in_graph_mode: # pylint: disable=prot…617 and not var._in_graph_mode): # pylint: disable=protected-access701 not v._in_graph_mode): # pylint: disable=protected-access795 if variable._in_graph_mode: # pylint: disable=protected-access
170 return ((v._in_graph_mode # pylint: disable=protected-access188 if new_variable._in_graph_mode: # pylint: disable=protected-access
228 self._in_graph_mode = not context.executing_eagerly()278 if self._in_graph_mode:
623 self.assertTrue(a._in_graph_mode)624 self.assertTrue(b._in_graph_mode)930 self.assertFalse(a._in_graph_mode)931 self.assertFalse(b._in_graph_mode)
1434 if var._in_graph_mode:
204 if op._in_graph_mode: # pylint: disable=protected-access
162 if context.executing_eagerly() and not self._in_graph_mode:
75 def _in_graph_mode(self): member in TPUShardedVariable76 return self.variables[0]._in_graph_mode # pylint: disable=protected-access
676 def _in_graph_mode(self): member in DistributedVariable677 return self._primary._in_graph_mode # pylint: disable=protected-access