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

Method pop_capture

tensorflow/python/framework/func_graph.py:641–647  ·  view source on GitHub ↗

Remove the capture and return the generated placeholder.

(self, tensor)

Source from the content-addressed store, hash-verified

639 self._captures[ops.tensor_id(tensor)] = (tensor, placeholder)
640
641 def pop_capture(self, tensor):
642 """Remove the capture and return the generated placeholder."""
643 capture = self._captures.pop(ops.tensor_id(tensor), None)
644 if capture is None:
645 return None
646
647 return capture[1]
648
649 def clear_captures(self):
650 # TODO(b/115366440): Delete this method when a custom OrderedDict is added.

Callers 1

func_graph_from_py_funcFunction · 0.95

Calls 2

popMethod · 0.45
tensor_idMethod · 0.45

Tested by

no test coverage detected