Add a wrapped input argument to the hint. Args: *args: The input 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 hi
(self, *args, **kwargs)
| 382 | # pylint: enable=protected-access |
| 383 | |
| 384 | def add_input(self, *args, **kwargs): |
| 385 | """Add a wrapped input argument to the hint. |
| 386 | |
| 387 | Args: |
| 388 | *args: The input tensor. |
| 389 | **kwargs: |
| 390 | "name" label |
| 391 | "tag" a tag to group multiple arguments that will be aggregated. I.e. |
| 392 | a string like 'cool_input'. Basically multiple inputs can be added |
| 393 | to the same hint for parallel operations that will eventually be |
| 394 | combined. An example would be static_rnn which creates multiple copies |
| 395 | of state or inputs. |
| 396 | "aggregate" aggregation strategy that is valid only for tag non None. |
| 397 | Acceptable values are OpHint.AGGREGATE_FIRST, OpHint.AGGREGATE_LAST, |
| 398 | and OpHint.AGGREGATE_STACK. |
| 399 | "index_override" The global index to use. This corresponds to the |
| 400 | argument order in the final stub that will be generated. |
| 401 | Returns: |
| 402 | The wrapped input tensor. |
| 403 | """ |
| 404 | return self._inputs.add(*args, **kwargs) |
| 405 | |
| 406 | def add_output(self, *args, **kwargs): |
| 407 | """Add a wrapped output argument to the hint. |