[1/N] Replace std::tie with structural binding (#119774)
This PR replaces some std::tie calls with structural binding from C++17. This not only makes the code more compact, but also has some performance gain.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119774
Approved by: https://github.com/albanD, https://github.com/malfet