remove UsageError in favor of ValueError (#61031)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61031
See https://github.com/pytorch/pytorch/pull/58916#issuecomment-868519515.
Test Plan: Imported from OSS
Reviewed By: iramazanli
Differential Revision: D29626810
Pulled By: mruberry
fbshipit-source-id: 25ddf26815f9ef82b8234d7dac811a6a13a53c54