-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore non-XLA nodes and their direct dependents. #6170
Conversation
Note: this PR can, possibly, create more partitions than before, affecting performance. Maybe we should make sure there are no regressions before actually landing it. |
I think the definition of the fallback is that
I don't fully understand what 3 means, can you give ma an example? |
The problem was that Reason: my guess is that it did so, in order to guarantee that the input/output of the generated partitions were all XLA tensors (which I believe Assuming that's the case, it still missed the 2 cases I mentioned:
Solution:
@JackCaoG let me know what you think. |
yea that make sense, is this pr ready for review? |
Yes, it is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly lgtm, minor questions on test cases.
c38c1a0
to
65cd98a
Compare
- Add a check for the return value - Add comments
65cd98a
to
416bccb
Compare
@JackCaoG could you approve this PR? |
Fix: #5966
This PR generalizes
FallBackNodeCollector
intoUnsupportedNodesCollector
, improving and solving a few issues the old implementation had:stack
)