Remove unneded TORCH_API (#32015)
Summary:
It was causing a build error when compiling on MINGW64
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32015
Differential Revision: D19697296
Pulled By: ezyang
fbshipit-source-id: 71e58783c48f8e99755c091b2027d59740dfca47