Fixed the script for the THC generated files (#17370)
Summary:
As of tight now, the script will produce a new generated file which will be inconsistent with the rest.
Test Result:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17370
Differential Revision: D14184943
Pulled By: izdeby
fbshipit-source-id: 5d3b956867bee661256cb4f38f086f33974a1c8b