Use isinstance test rather than exact type test for wrap to fake
I'm not sure why we did an exact test originally. Let's find out!
Signed-off-by: Edward Z. Yang <ezyangfb.com>
ghstack-source-id: 1ef93248f1980c9a24a16db56b41e1f1a75597ac
Pull Request resolved: https://github.com/pytorch/pytorch/pull/89671