Log both torch.version.git_version and torch.__version__ (#2039)
Summary:
In the HUD dashboard, we will need to log both git version and `torch.__version__`. This is helpful to identify the date when the pytorch is built.
Address TODO item 1 in https://github.com/pytorch/benchmark/issues/1893
Pull Request resolved: https://github.com/pytorch/benchmark/pull/2039
Reviewed By: aaronenyeshi
Differential Revision: D51327201
Pulled By: xuzhao9
fbshipit-source-id: 9a1d9e21c0a755fd17bc77c6f3846ffbeb634166