Fix fallback issues to handle inplace case (#15726)
Summary:
Fix fallback issues to handle inplace case
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15726
Differential Revision: D13591243
Pulled By: yinghai
fbshipit-source-id: 6897f1daacb36beabcdfc22c39242bbdfdd0e534