Add a sequence of inputs to the function invocation. Args: *args: List of inputs to be converted (should be Tf.Tensor). **kwargs: This allows 'names' which should be a list of names. Returns: Wrapped inputs (identity standins that have additional metadata). These are
(self, *args, **kwargs)
| 426 | return self._outputs.add(*args, **kwargs) |
| 427 | |
| 428 | def add_inputs(self, *args, **kwargs): |
| 429 | """Add a sequence of inputs to the function invocation. |
| 430 | |
| 431 | Args: |
| 432 | *args: List of inputs to be converted (should be Tf.Tensor). |
| 433 | **kwargs: This allows 'names' which should be a list of names. |
| 434 | Returns: |
| 435 | Wrapped inputs (identity standins that have additional metadata). These |
| 436 | are also are also tf.Tensor's. |
| 437 | """ |
| 438 | if "names" in kwargs: |
| 439 | return [ |
| 440 | self._inputs.add(arg, name=name) |
| 441 | for arg, name in zip(args, kwargs["names"]) |
| 442 | ] |
| 443 | else: |
| 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. |