Move error reporting code out-of-line from header. (#32118)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32118
This reduces code size and makes the calling function more likely to inline.
Signed-off-by: Edward Z. Yang <ezyang@fb.com>
Test Plan: Imported from OSS
Differential Revision: D19392950
Pulled By: ezyang
fbshipit-source-id: 5e3829cca5604407229f93c2486eb9a325581ea2