Implement the logic to build the graph, with an :class:`InputSource` that's been setup already. Returns: [Callback]: list of callbacks needed
(self, input, get_cost_fn, get_opt_fn)
| 221 | |
| 222 | @abstractmethod |
| 223 | def _setup_graph(self, input, get_cost_fn, get_opt_fn): |
| 224 | """ |
| 225 | Implement the logic to build the graph, with an :class:`InputSource` |
| 226 | that's been setup already. |
| 227 | |
| 228 | Returns: |
| 229 | [Callback]: list of callbacks needed |
| 230 | """ |
| 231 | |
| 232 | def _setup_input(self, input_signature, input): |
| 233 | assert not input.setup_done() |