WIP: add to_backend_graph
and from_backend_graph
#7294
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a functional WIP and I think we should discuss and think carefully about this. (yeah, I know, doing so would be easier with docs and tests).
CC @rlratzel who helped me brainstorm the design for this (and I hope will have more constructive feedback!).
I like the idea of exposing converting to/from backends (and even between backends) to users. This is related to #7259. I like having dispatchable versions of conversions so they can be dispatched to backends, which also gives them the option of adding docs and additional parameters.
Once we have this, configuration (#7225), and caching of graph conversions (#7283?), we'll be in good shape for adding more sophisticated policies around converting/dispatching, which will have better UX. If we have all that, then we'll need to think about how to best use
should_run
(#7257).