[pytorch][PR] bug fix for D32374003 (#69278)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/69278
Test Plan:
```
fbpkg build -E smart.inference_platform_sp.sigrid_predictor.persistent.bolt --yes
```
Reviewed By: kimishpatel, HDCharles
Differential Revision: D32773910
fbshipit-source-id: a2181fea354f310cf9f6f57b802dc4a148627acc