Install the dependencies the first time run the benchmark. (#694)
Summary:
Strictly speaking, the bisection workflow shouldn't depend on PyTorch nightly: instead, it should install the TorchBench deps after the first time it compiles PyTorch and its domain packages.
This PR does this optimization and removes PyTorch nightly dependencies for bisection jobs. So the bisection jobs and OnDemand CI jobs can proceed even if the nightly packages are unavailable.
The OnDemand PR CI link is here: https://github.com/pytorch/pytorch/pull/71323. It shows we can run PR CI even without installing nightly packages.
Pull Request resolved: https://github.com/pytorch/benchmark/pull/694
Reviewed By: wconstab
Differential Revision: D33591716
Pulled By: xuzhao9
fbshipit-source-id: 542928f56c0af16b0a2846813596353bf004c30d