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

Method variable_captures

tensorflow/python/framework/func_graph.py:702–708  ·  view source on GitHub ↗

Map of tensor ids of variable handles to variables which are captured.

(self)

Source from the content-addressed store, hash-verified

700
701 @property
702 def variable_captures(self):
703 """Map of tensor ids of variable handles to variables which are captured."""
704 return {
705 ops.tensor_id(self._captures[ops.tensor_id(v.handle)][1]): v
706 for v in self.variables
707 if ops.tensor_id(v.handle) in self._captures
708 }
709
710 def mark_as_unsaveable(self, error_message):
711 """Marks this FuncGraph as unsaveable.

Callers

nothing calls this directly

Calls 1

tensor_idMethod · 0.45

Tested by

no test coverage detected