Build results that match the original shape of the fetch. Args: values: List of values returned by run(). The values correspond exactly to the list tensors or ops returned by unique_fetches(). Returns: A struct of the same shape as the original fetch object handled by
(self, values)
| 236 | raise NotImplementedError('Must be implemented by subclasses') |
| 237 | |
| 238 | def build_results(self, values): |
| 239 | """Build results that match the original shape of the fetch. |
| 240 | |
| 241 | Args: |
| 242 | values: List of values returned by run(). The values correspond exactly to |
| 243 | the list tensors or ops returned by unique_fetches(). |
| 244 | |
| 245 | Returns: |
| 246 | A struct of the same shape as the original fetch object handled by |
| 247 | this fetch mapper. In the returned struct, the original fetches are |
| 248 | replaced by their fetched values. |
| 249 | """ |
| 250 | raise NotImplementedError('Must be implemented by subclasses') |
| 251 | |
| 252 | @staticmethod |
| 253 | def for_fetch(fetch): |
no outgoing calls
no test coverage detected