Replace all AT_ASSERTM in RNN_miopen.cpp (#51072)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51072
AT_ASSERTM is deprecated and should be replaced by either TORCH_CHECK or
TORCH_INTERNAL_ASSERT, depending on the situation.
Test Plan: Imported from OSS
Reviewed By: ailzhang
Differential Revision: D26074364
Pulled By: ezyang
fbshipit-source-id: 742e28afe49e0a546c252a0fad487f93410d0cb5