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

Method _as_tf_output

tensorflow/python/framework/ops.py:686–695  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

684 return "%s:%d" % (self._op.name, self._value_index)
685
686 def _as_tf_output(self):
687 # pylint: disable=protected-access
688 # NOTE: Beyond preventing unnecessary (re-)allocation, the cached object
689 # also guarantees that a dictionary of tf_output objects will retain a
690 # deterministic (yet unsorted) order which prevents memory blowup in the
691 # cache of executor(s) stored for every session.
692 if self._tf_output is None:
693 self._tf_output = c_api_util.tf_output(self.op._c_op, self.value_index)
694 return self._tf_output
695 # pylint: enable=protected-access
696
697 def __str__(self):
698 return "Tensor(\"%s\"%s%s%s)" % (

Callers 15

_c_api_shapeMethod · 0.95
set_shapeMethod · 0.95
consumersMethod · 0.95
partial_run_setupMethod · 0.45
make_callableMethod · 0.45
_do_runMethod · 0.45
get_resource_handle_dataFunction · 0.45
EvaluateAsTupleFunction · 0.45
copy_handle_dataFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected