Fix detectron2 models on cpu-only torch (#1430)
Summary:
This PR intends to fix https://github.com/pytorch/benchmark/issues/1429 .
cc:
xuzhao9
Pull Request resolved: https://github.com/pytorch/benchmark/pull/1430
Reviewed By: aaronenyeshi
Differential Revision: D43551861
Pulled By: xuzhao9
fbshipit-source-id: 4bc6820c4a011df7459da229f3c5667ae06eae30