[package] fix persistent_load error (#58439)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/58439
Test Plan: Imported from OSS
Reviewed By: suo
Differential Revision: D28494250
Pulled By: Lilyjjo
fbshipit-source-id: c068760db9c25dcbf5a88ea9343eab11f0e7736a