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. |
JackCaoG
left a comment
There was a problem hiding this comment.
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
FallBackNodeCollectorintoUnsupportedNodesCollector, improving and solving a few issues the old implementation had:stack)