remove record_function_enter and record_function_exit from header (#37052)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37052
These only need to be in the cpp as they are not referenced anywhere
else. These functions should only be used from the python operators
torch.opts.profiler.record_function_{enter, exit}.
ghstack-source-id: 102979051
Test Plan: CI
Differential Revision: D21171987
fbshipit-source-id: dfe8130d2b64de6179222327069ce1ab877829e3