Searched refs:_in_graph_mode (Results 1 – 13 of 13) sorted by relevance
415 self._in_graph_mode = not context.executing_eagerly()417 self._in_graph_mode = in_graph_mode448 if context.executing_eagerly() and not self._in_graph_mode:569 if not self._in_graph_mode:904 in_graph_mode=self._in_graph_mode,1791 self._in_graph_mode = not context.executing_eagerly()1798 if self._in_graph_mode:1810 ops.device if self._in_graph_mode else ops.NullContextmanager)1837 graph_mode=self._in_graph_mode)1840 if (self._in_graph_mode and initial_value is not None and[all …]
2411 self._in_graph_mode = not context.executing_eagerly()2412 if self._in_graph_mode:2428 if self._in_graph_mode and not self._building_function:2442 if (self._in_graph_mode and not self._building_function and2576 if self._in_graph_mode and not self._building_function:
1639 self._in_graph_mode = True1663 if context.executing_eagerly() and not self._in_graph_mode:
136 def _in_graph_mode(self): member in TPUReplicatedVariable137 return self._vars[0]._in_graph_mode # pylint: disable=protected-access
338 self.assertFalse(v._in_graph_mode)
714 def _in_graph_mode(self): member in DistributedVariable715 return self._primary._in_graph_mode # pylint: disable=protected-access
206 …if resource_variable_ops.is_resource_variable(v) and not v._in_graph_mode: # pylint: disable=prot…710 and not var._in_graph_mode): # pylint: disable=protected-access794 not v._in_graph_mode): # pylint: disable=protected-access888 if variable._in_graph_mode: # pylint: disable=protected-access
167 return ((v._in_graph_mode # pylint: disable=protected-access185 if new_variable._in_graph_mode: # pylint: disable=protected-access
273 self._in_graph_mode = not context.executing_eagerly()325 if self._in_graph_mode:
157 if context.executing_eagerly() and not self._in_graph_mode:
64 def _in_graph_mode(self): member in TPUEmbeddingVariable65 return self.variables[0]._in_graph_mode # pylint: disable=protected-access
212 if op._in_graph_mode: # pylint: disable=protected-access
1438 if var._in_graph_mode: