PR3: add a workaround for reference path (#66535)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66535
Test Plan: Imported from OSS
Reviewed By: jerryzh168
Differential Revision: D31676400
Pulled By: rahxephon89
fbshipit-source-id: fd4c8e9bbc82930cc1255fb8bf8d8ac7f0934c3f