[TorchTidy] Adding support for storing scalar values in profiling (#81843)
Differential Revision: [D38412482](https://our.internmc.facebook.com/intern/diff/D38412482)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/81843
Approved by: https://github.com/robieta