MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / watch_variable

Method watch_variable

tensorflow/python/framework/func_graph.py:261–265  ·  view source on GitHub ↗

Marks the variable v as accessed while building this graph.

(self, v)

Source from the content-addressed store, hash-verified

259 return "FuncGraph(name=%s, id=%s)" % (self.name, id(self))
260
261 def watch_variable(self, v):
262 """Marks the variable v as accessed while building this graph."""
263 while self is not None and isinstance(self, FuncGraph):
264 self._watched_variables.add(v)
265 self = self.outer_graph
266
267 def capture_call_time_value(self, closure, spec, key=None):
268 """Creates a placeholder which at call time has the value closure().

Callers 3

variable_accessedFunction · 0.80
watchMethod · 0.80
_lift_single_variableFunction · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected