Repository navigation
Conversation
`can_run` and `should_run` may not be able to capture everything, so might as well try the next backend.
| f"{backend_names}. This may be supported via backend-to-backend " | ||
| "conversions in the future." |
There was a problem hiding this comment.
Minor nit, nothing to block my approval: I think the original message was more succinct, and IMO mentioning backend-to-backend conversions here seems distracting. Perhaps instead is there some text that can be added to help the user resolve this problem if they were to get this error?
There was a problem hiding this comment.
By including this in the text, it serves as a kind of warning or advertisement that it may be implemented in the future. Explaining how NotImplementedError behavior may be implemented seems like good practice to me--one that I would like to see more of.
How would you suggest users resolve this problem if they get this error?
There was a problem hiding this comment.
Interestingly, I also added a blurb to these messages in #7496. Do you like its verbiage better?
"Automatic conversions between backends may become possible in future releases."
|
This is a good change, thanks! I also really like the additional debug log messages. |
|
Closing. Part of and superseded by #7585 |
can_runandshould_runmay not be able to capture everything, so might as well try the next backend.This also improves error and log messages to mention possible future behavior, and helps set us up for handling falling back via backend-to-backend conversions. #7496 will let us fall back to networkx before we support backend-to-backend conversions.
CC @rlratzel