Add a sequence of outputs to the function invocation. Args: *args: List of outputs to be converted (should be tf.Tensor). **kwargs: See Returns: Wrapped outputs (identity standins that have additional metadata). These are also tf.Tensor's.
(self, *args, **kwargs)
| 444 | return [self._inputs.add(arg) for arg in args] |
| 445 | |
| 446 | def add_outputs(self, *args, **kwargs): |
| 447 | """Add a sequence of outputs to the function invocation. |
| 448 | |
| 449 | Args: |
| 450 | *args: List of outputs to be converted (should be tf.Tensor). |
| 451 | **kwargs: See |
| 452 | Returns: |
| 453 | Wrapped outputs (identity standins that have additional metadata). These |
| 454 | are also tf.Tensor's. |
| 455 | """ |
| 456 | if "names" in kwargs: |
| 457 | return [ |
| 458 | self._outputs.add(arg, name=name) |
| 459 | for arg, name in zip(args, kwargs["names"]) |
| 460 | ] |
| 461 | else: |
| 462 | return [self._outputs.add(arg) for arg in args] |
| 463 | |
| 464 | |
| 465 | class _LiteOperand(object): |