Reimplement isResharding(Expr*) with a pairwise map for better perf. Before this patch, it would use getTvsWithDifferentSharding which creates a computeAtMap, which is too costly. This patch should address https://github.com/Lightning-AI/lightning-thunder/issues/229
Reimplement
isResharding(Expr*)
with a pairwise map for better perf. Before this patch, it would usegetTvsWithDifferentSharding
which creates acomputeAtMap
, which is too costly. This patch should address https://github.com/Lightning-AI/lightning-thunder/issues/229