Fix Caffe2 mobile compilation (#35288)
Summary:
fixes https://github.com/pytorch/pytorch/issues/35211
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35288
Reviewed By: jianyuh
Differential Revision: D20639692
Pulled By: jspark1105
fbshipit-source-id: 83e12c1c956271c10ffba197206bd8d5a158e700