Returns a tensor given by *name* using a deep lookup within this op. *None* is returned when
no tensor was found.
return reduce(lambda t1,t2: t1 or t2.get(name), self.inputs, None)
def eval(self, feed_dict, _uuid):
eval(feed_dict=None)
Returns the value of the output tensor. See :py:meth:`Tensor.eval` for more info.
After Change
Returns one or more tensors given by *names* using a deep lookup within this op. *None* is
returned when no tensor was found.
tensors = tuple(self._get(name) for name in names)
return tensors[0] if len(names) == 1 else tensors
def _get(self, name):
return reduce(lambda t1,t2: t1 or t2.get(name), self.inputs, None)