Add fallback wrapper for profiler (#37194)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37194
Test Plan: Imported from OSS
Reviewed By: ilia-cher, ngimel
Differential Revision: D21217886
Pulled By: jamesr66a
fbshipit-source-id: b06195e9ac110979d128391e067d5c9f416c1873