Make sdp_utils more c++ style guide compliant (#99948)
Preivously all of sdp_utils was implemented using inline functions in a header. This is not very comformant to style guide so broke into cpp and header file
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99948
Approved by: https://github.com/Skylion007