[FX] Fix __tensor_constants not scriptable (#47817)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47817
Test Plan: Imported from OSS
Reviewed By: nikithamalgifb
Differential Revision: D24908959
Pulled By: jamesr66a
fbshipit-source-id: c0cadae2091e917b72684262b8655f8813ac9d91