Home
last modified time | relevance | path

Searched refs:_in_graph_mode (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/contrib/eager/python/
Dparameter_server.py143 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 and
197 graph_mode=self._in_graph_mode)
201 self._initial_value = initial_value if self._in_graph_mode else None
206 if self._in_graph_mode:
/external/tensorflow/tensorflow/python/ops/
Dresource_variable_ops.py425 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 and
563 self._initial_value = initial_value if self._in_graph_mode else None
568 if self._in_graph_mode:
621 if not self._in_graph_mode:
635 self._in_graph_mode = True
[all …]
Dvariable_scope.py2198 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:
Dvariables.py1425 self._in_graph_mode = True
1446 if context.executing_eagerly() and not self._in_graph_mode:
/external/tensorflow/tensorflow/python/eager/
Ddef_function.py108 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:
Dwrap_function.py120 if (old_variable._in_graph_mode # pylint: disable=protected-access
/external/tensorflow/tensorflow/contrib/tpu/python/tpu/
Dkeras_tpu_variables.py222 def _in_graph_mode(self): member in ReplicatedVariable
223 return self._primary_var._in_graph_mode # pylint: disable=protected-access
/external/tensorflow/tensorflow/python/training/
Doptimizer.py203 …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-access
774 if variable._in_graph_mode: # pylint: disable=protected-access
/external/tensorflow/tensorflow/python/keras/optimizer_v2/
Doptimizer_v2_test.py544 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)
Doptimizer_v2.py964 if var._in_graph_mode:
/external/tensorflow/tensorflow/python/training/saving/
Dsaveable_object_util.py185 if op._in_graph_mode:
/external/tensorflow/tensorflow/python/distribute/
Dvalues.py573 def _in_graph_mode(self): member in DistributedVariable
574 return self.primary._in_graph_mode # pylint: disable=protected-access
1143 def _in_graph_mode(self): member in TPUMirroredVariable
1144 return self.primary._in_graph_mode # pylint: disable=protected-access