Retrieve and materialize stored real inputs Returns: Materialized real inputs with actual tensors Raises: RuntimeError: If no inputs are stored
(self)
| 163 | self._has_data = True |
| 164 | |
| 165 | def get(self) -> Any: |
| 166 | """ |
| 167 | Retrieve and materialize stored real inputs |
| 168 | |
| 169 | Returns: |
| 170 | Materialized real inputs with actual tensors |
| 171 | |
| 172 | Raises: |
| 173 | RuntimeError: If no inputs are stored |
| 174 | """ |
| 175 | if not self._has_data: |
| 176 | raise RuntimeError("No inputs stored in InputStorage") |
| 177 | |
| 178 | return self._materialize_value(self._stored_inputs) |
| 179 | |
| 180 | def has_data(self) -> bool: |
| 181 | """ |