Add a wrapped output argument to the hint. Args: *args: The output tensor. **kwargs: "name" label "tag" a tag to group multiple arguments that will be aggregated. I.e. a string like 'cool_input'. Basically multiple inputs can be added to the same
(self, *args, **kwargs)
| 404 | return self._inputs.add(*args, **kwargs) |
| 405 | |
| 406 | def add_output(self, *args, **kwargs): |
| 407 | """Add a wrapped output argument to the hint. |
| 408 | |
| 409 | Args: |
| 410 | *args: The output tensor. |
| 411 | **kwargs: |
| 412 | "name" label |
| 413 | "tag" a tag to group multiple arguments that will be aggregated. I.e. |
| 414 | a string like 'cool_input'. Basically multiple inputs can be added |
| 415 | to the same hint for parallel operations that will eventually be |
| 416 | combined. An example would be static_rnn which creates multiple copies |
| 417 | of state or inputs. |
| 418 | "aggregate" aggregation strategy that is valid only for tag non None. |
| 419 | Acceptable values are OpHint.AGGREGATE_FIRST, OpHint.AGGREGATE_LAST, |
| 420 | and OpHint.AGGREGATE_STACK. |
| 421 | "index_override" The global index to use. This corresponds to the |
| 422 | argument order in the final stub that will be generated. |
| 423 | Returns: |
| 424 | The wrapped output tensor. |
| 425 | """ |
| 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. |