Revise err msgs for weight param of Multimarginloss (#106047)
Summary: fix lint issue of #106019
Fix: https://github.com/pytorch/pytorch/issues/106020
Pull Request resolved: https://github.com/pytorch/pytorch/pull/106047
Approved by: https://github.com/Skylion007