[static runtime] convert to->to_copy (#53524)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/53524
Add to->to_copy in the ReplaceWithCopy pass for playing well with
AliasDb
Test Plan:
Run bench with CastedBatchOneHot fusion off
(https://www.internalfb.com/intern/diff/view-version/123230476/),
on adindexer and adfinder models
Reviewed By: hlu1
Differential Revision: D26887050
fbshipit-source-id: 3f2fb9e27783bcdeb91c8b4181575f059317aff1