We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 885439c commit 6c5118aCopy full SHA for 6c5118a
core/lowering/passes/remove_to.cpp
@@ -33,7 +33,7 @@ struct ToRemoval {
33
auto n = *it;
34
if (n->kind() == c10::Symbol::fromQualString("aten::to")) {
35
LOG_GRAPH("Found that node " << *n << " is an to node (RemoveTo)" << std::endl);
36
- n->outputs()[0]->replaceAllUsesWith(n->inputs()[1]);
+ n->outputs()[0]->replaceAllUsesWith(n->inputs()[0]);
37
it.destroyCurrent();
38
}
39
0 commit comments