Searched refs:_in_graph_mode (Results 1 – 12 of 12) sorted by relevance
143 self._in_graph_mode = not context.executing_eagerly()153 if self._in_graph_mode:162 graph_mode=self._in_graph_mode)184 if (self._in_graph_mode and initial_value is not None and197 graph_mode=self._in_graph_mode)201 self._initial_value = initial_value if self._in_graph_mode else None206 if self._in_graph_mode:
425 if context.executing_eagerly() and not self._in_graph_mode:521 self._in_graph_mode = not context.executing_eagerly()526 if self._in_graph_mode:538 ops.device if self._in_graph_mode else ops.NullContextmanager)551 graph_mode=self._in_graph_mode)554 if (self._in_graph_mode and initial_value is not None and563 self._initial_value = initial_value if self._in_graph_mode else None568 if self._in_graph_mode:621 if not self._in_graph_mode:635 self._in_graph_mode = True[all …]
2198 self._in_graph_mode = not context.executing_eagerly()2199 if self._in_graph_mode:2215 if self._in_graph_mode and not self._building_function:2229 if self._in_graph_mode and not self._building_function:2358 if self._in_graph_mode and not self._building_function:
1425 self._in_graph_mode = True1446 if context.executing_eagerly() and not self._in_graph_mode:
108 self._in_graph_mode = not context.executing_eagerly()149 graph_mode=self._in_graph_mode)156 if self._in_graph_mode:207 if not self._in_graph_mode:
120 if (old_variable._in_graph_mode # pylint: disable=protected-access
222 def _in_graph_mode(self): member in ReplicatedVariable223 return self._primary_var._in_graph_mode # pylint: disable=protected-access
203 …if resource_variable_ops.is_resource_variable(v) and not v._in_graph_mode: # pylint: disable=prot…589 …resource_variable_ops.ResourceVariable) and not var._in_graph_mode: # pylint: disable=protected-a…670 not v._in_graph_mode): # pylint: disable=protected-access774 if variable._in_graph_mode: # pylint: disable=protected-access
544 self.assertTrue(a._in_graph_mode)545 self.assertTrue(b._in_graph_mode)731 self.assertFalse(a._in_graph_mode)732 self.assertFalse(b._in_graph_mode)
964 if var._in_graph_mode:
185 if op._in_graph_mode:
573 def _in_graph_mode(self): member in DistributedVariable574 return self.primary._in_graph_mode # pylint: disable=protected-access1143 def _in_graph_mode(self): member in TPUMirroredVariable1144 return self.primary._in_graph_mode # pylint: disable=protected-access