Fix vision model on inductor and profile on CPU only machines (#1415)
Summary:
Fixes https://github.com/pytorch/benchmark/issues/1413 at the same time.
Pull Request resolved: https://github.com/pytorch/benchmark/pull/1415
Reviewed By: aaronenyeshi
Differential Revision: D43306149
Pulled By: xuzhao9
fbshipit-source-id: dc99608994645dda05fde7ba7c96749bde758351