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

Method reset_captures

tensorflow/python/framework/func_graph.py:635–639  ·  view source on GitHub ↗

Set the captures with the provided list of captures & placeholder.

(self, capture_list)

Source from the content-addressed store, hash-verified

633 self.inputs.append(placeholder)
634
635 def reset_captures(self, capture_list):
636 """Set the captures with the provided list of captures & placeholder."""
637 self._captures = py_collections.OrderedDict()
638 for tensor, placeholder in capture_list:
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."""

Callers 2

_make_inputs_matchFunction · 0.80

Calls 1

tensor_idMethod · 0.45

Tested by

no test coverage detected