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

Method add_capture

tensorflow/python/framework/func_graph.py:625–633  ·  view source on GitHub ↗

Capture a specific tensor and utilize the provided placeholder. Args: tensor: Tensor to captures. placeholder: Provided placeholder for the tensor.

(self, tensor, placeholder)

Source from the content-addressed store, hash-verified

623 return self._captures.values()
624
625 def add_capture(self, tensor, placeholder):
626 """Capture a specific tensor and utilize the provided placeholder.
627
628 Args:
629 tensor: Tensor to captures.
630 placeholder: Provided placeholder for the tensor.
631 """
632 self._captures[ops.tensor_id(tensor)] = (tensor, placeholder)
633 self.inputs.append(placeholder)
634
635 def reset_captures(self, capture_list):
636 """Set the captures with the provided list of captures & placeholder."""

Callers 4

_capture_helperMethod · 0.95
capture_eager_tensorMethod · 0.95
pruneMethod · 0.95
_lift_single_variableFunction · 0.80

Calls 2

tensor_idMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected