Sets the state update field of the output collection. Useful when writing a "transparent module" that needs its state to have a specific structure (e.g., a tuple) for backwards compatibility.
(self, value: Any)
| 511 | name: The output name. |
| 512 | value: The output tensor. |
| 513 | |
| 514 | Raises: |
| 515 | OutputConflictError: If outputs of method already exist. |
| 516 | """ |
| 517 | if name in self.output_collection.module_outputs: |
| 518 | raise OutputConflictError(f"Outputs of name '{name}' already exist") |
| 519 | |
| 520 | self.output_collection.module_outputs[name] = value |
| 521 | |
| 522 | def set_state_update(self, value: Any): |
| 523 | """Sets the state update field of the output collection. |
| 524 | |
| 525 | Useful when writing a "transparent module" that needs its state to have a specific |
| 526 | structure (e.g., a tuple) for backwards compatibility. |
| 527 | """ |
no outgoing calls