[TensorExpr] Fuser: check node inputs' device before merging the node into a fusion group. (#44241)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/44241
Test Plan: Imported from OSS
Reviewed By: gmagogsfm
Differential Revision: D23554192
Pulled By: ZolotukhinM
fbshipit-source-id: fb03262520303152b83671603e08e7aecc24f5f2
Author
Mikhail Zolotukhin